Helper class for constructing MongoDB DAO, uses Typesafe configuration and collection name as constructor arguments, prepared especially for objects with key of type String
Helper class for constructing MongoDB DAO, uses Typesafe configuration and collection name as constructor arguments, prepared especially for objects with key of type String
Usage: case class Foo(@Key("_id") someID:String, someInt:Integer, someObject: anotherObject)
application.conf: ... this.app.Foo.Database{ uri = "mongodb://localhost/FooDatabase" } ...
val config = ConfigFactory.load().getConfig("this.app.Foo.Database") // reads config with "uri" element object FooDAO extends MongoDAOStringKey[Foo](config,"foos")