jkuehn / gorm-mongodb

Grails GORM implementation for the MongoDB document oriented database
http://www.grails.org/plugin/mongodb-morphia
Apache License 2.0
21 stars 14 forks source link

Introduce optional switch for disabeling morphia query validation #7

Closed alexander-riss closed 13 years ago

alexander-riss commented 13 years ago

Hi !

I implemented an optional switch ( validation = [true/false]) to en/disable the morphia query validation. This can be especially useful when querying for the properties of embedded objects like:

container.embeddedObject.property = 'queryValue'

which would normally be rejected by morphia because "embeddedObject.property" is not a member of "container"

(hope i did not mess up the commit history :)

jkuehn commented 13 years ago

thanks!