Permalink
Browse files

typo: mongoMappedFields should be mongoFields

  • Loading branch information...
1 parent a32befd commit 0c3df3a41a85c32b9279ac087cd14bddc440ccc8 MP committed Apr 30, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.textile
View
@@ -70,7 +70,7 @@ p. To register your Domain class with a mapper you need to add two static helper
String lastName
static mongoTypeName = "user"
- static mongoMappedFields = ['fn':firstName','ln':'lastName']
+ static mongoFields = ['fn':firstName','ln':'lastName']
}
</pre>
@@ -102,7 +102,7 @@ p. The mapper will also process mapped properties and Lists:
String country
static mongoTypeName = "address"
- static mongoMappedFields = [ 'ci':'city' , 'co' : 'country' ]
+ static mongoFields = [ 'ci':'city' , 'co' : 'country' ]
}
class User{
@@ -111,7 +111,7 @@ p. The mapper will also process mapped properties and Lists:
Address address
static mongoTypeName = "user"
- static mongoMappedFields = ['fn':firstName','ln':'lastName','adrs':'address']
+ static mongoFields = ['fn':firstName','ln':'lastName','adrs':'address']
}
def adrs = new Address( city:'ottawa' , country:'canada' )

0 comments on commit 0c3df3a

Please sign in to comment.