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")
Helper class with SalatDAO configuration read from application configuration file
Helper class with SalatDAO configuration read from application configuration file
Usage: case class Foo(@Key("_id") someID:String, someInt:Integer, someObject: anotherObject)
object FooDAO extends SalatDAOWithCfg[Foo,String]("app.db.uri","foos")