getCollection
Purpose
Returns the DBCollection instance for the given domain class.Examples
assert (Book.collection instanceof DBCollection) // insert data into collection Project.collection.insert(new BasicDBObject('name', 'Project MongoDB'))
GORM implementation for the MongoDB NoSQL database based on the Morphia library
|
(Quick Reference)
getCollectionPurposeReturns the DBCollection instance for the given domain class.Examplesassert (Book.collection instanceof DBCollection) // insert data into collection Project.collection.insert(new BasicDBObject('name', 'Project MongoDB')) |