Get a collection.
Get a collection. Implicitly uses the camel case version of the class name, or the collection name configured by
a net.vz.mongodb.jackson.MongoCollection annotation if present.
The passed in entityType must directly implement play.modules.mongodb.jackson.KeyTyped and specify the K
parameter, this is used as the key type. If you don't want your objects implementing MongoDocument, simply
use the MongoDB.collection(Class, Class) method instead, and pass the keyType in there.
This method takes an implicit application as a parameter, and so is the best option to use from Scala, and can also be used while testing to pass in a fake application.
The type of the entity
Get a collection.
Get a collection.
The passed in entityType must directly implement play.modules.mongodb.jackson.KeyTyped and specify the K
parameter, this is used as the key type. If you don't want your objects implementing MongoDocument, simply
use the MongoDB.collection(Class, Class) method instead, and pass the keyType in there.
This method takes an implicit application as a parameter, and so is the best option to use from Scala, and can also be used while testing to pass in a fake application.
The name of the collection
The type of the entity
Get a collection.
Get a collection. Implicitly uses the camel case version of the class name, or the collection name configured by
a net.vz.mongodb.jackson.MongoCollection annotation if present.
This method takes an implicit application as a parameter, and so is the best option to use from Scala, and can also be used while testing to pass in a fake application.
The type of the entity
The type of the key
Get a collection.
Get a collection. This method takes an implicit application as a parameter, and so is the best option to use from Scala, and can also be used while testing to pass in a fake application.
The name of the collection
The type of the entity
The type of the key
Get a collection.
Get a collection. Implicitly uses the camel case version of the class name, or the collection name configured by
a net.vz.mongodb.jackson.MongoCollection annotation if present.
The passed in entityType must directly implement play.modules.mongodb.jackson.KeyTyped and specify the K
parameter, this is used as the key type. If you don't want your objects implementing MongoDocument, simply
use the MongoDB.getCollection(Class, Class) method instead, and pass the keyType in there.
This method uses the current application, and so will not work outside of the context of a running app.
The type of the entity
Get a collection.
Get a collection.
The passed in entityType must directly implement play.modules.mongodb.jackson.KeyTyped and specify the K
parameter, this is used as the key type. If you don't want your objects implementing MongoDocument, simply
use the MongoDB.getCollection(Class, Class) method instead, and pass the keyType in there.
This method uses the current application, and so will not work outside of the context of a running app.
The name of the collection
The type of the entity
Get a collection.
Get a collection. Implicitly uses the camel case version of the class name, or the collection name configured by
a net.vz.mongodb.jackson.MongoCollection annotation if present.
This method uses the current application, and so will not work outside of the context of a running app.
The type of the entity
The type of the key
Get a collection.
Get a collection. This method uses the current application, and so will not work outside of the context of a running app.
The name of the collection
The type of the entity
The type of the key
MongoDB Jackson Mapper module for play framework