Skip to content

Commit f7d3dff

Browse files
committed
updated mongodb driver
documentation for thomas commit
1 parent 6e2c1a1 commit f7d3dff

6 files changed

+10
-5
lines changed

Diff for: CHANGES.textile

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ h2. Change Log
22

33
Also see the "release notes of underlying morphia library":http://code.google.com/p/morphia/wiki/ReleaseNotes and the GORM-MongoDB "User Guide":http://jkuehn.github.com/gorm-mongodb/
44

5+
h3. v0.8.0 - 2012-09-12
6+
* Updated MongoDB Java driver to *2.9.1*
7+
* Added the ability to configure MongoOptions in DataSource.groovy - see quickstart in user guide (thanks to Thomas)
8+
59
h3. v0.7.9 - 2012-08-31
610
* Updated MongoDB Java driver to *2.9* (aggregation framework)
711

Diff for: MongodbMorphiaGrailsPlugin.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MongodbMorphiaGrailsPlugin {
2020
def scm = [ url: "https://github.com/jkuehn/gorm-mongodb" ]
2121

2222
// the plugin version
23-
def version = "0.7.9"
23+
def version = "0.8.0"
2424
// the version or versions of Grails the plugin is designed for
2525
def grailsVersion = "1.3.4 > *"
2626
// the other plugins this plugin depends on

Diff for: application.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#Wed Sep 12 21:57:41 CEST 2012
33
app.grails.version=2.1.0
44
app.name=mongodb-morphia
5-
app.version=0.7.9
5+
app.version=0.8.0
66
plugins.hibernate=2.1.0
77
plugins.release=1.0.1
88
plugins.svn=1.0.2
377 KB
Binary file not shown.

Diff for: plugin.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<plugin name='mongodb-morphia' version='0.7.9' grailsVersion='1.3.4 &gt; *'>
1+
<plugin name='mongodb-morphia' version='0.8.0' grailsVersion='1.3.4 &gt; *'>
22
<author>Juri Kuehn</author>
33
<authorEmail>juri.kuehn at gmail.com</authorEmail>
44
<title>Alternative MongoDB GORM based on the Morphia library</title>

Diff for: src/docs/guide/2. Quickstart.gdoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@ mongodb {
2828
port = 27017
2929
databaseName = 'test'
3030
username = 'user' // database user and password, if server requires authentication
31-
password = 's3cret'
31+
password = 's3cret'
3232
}
3333
{code}
3434

35-
You can configure "replica sets":http://www.mongodb.org/display/DOCS/Replica+Sets this way:
35+
You can configure "replica sets":http://www.mongodb.org/display/DOCS/Replica+Sets and override default "MongoOptions":http://api.mongodb.org/java/2.9.1/com/mongodb/MongoOptions.html this way:
3636

3737
{code}
3838
mongodb {
3939
replicaSet = [ "localhost:27017", "localhost:27018"]
4040
databaseName = 'test'
41+
options = new MongoOptions(readPreference: ReadPreference.nearest()) // optional: configure MongoOptions here
4142
}
4243
{code}
4344

0 commit comments

Comments
 (0)