Search code examples
scalamongodbmorphia

Is there any orm-like library for mongodb in scala?


It seems only the casbah we can use in scala, but I hope there is a orm-like library for scala, like morphia for java, or something else.

Is there any? I don't want to use morphia in scala because I have to convert java collections to scala


UPDATE

I've tried some of them, but still not find a proper one. Some are hard for scala newbies to get started.

FINALLY

Finally, I chose mongo-scala-driver, its awesome. Thanks to everybody.


Solution

  • There are two solid options:

    Salat, which is designed to integrate with Casbah using case classes and scalasig - https://github.com/novus/salat/

    Lift (liftweb.net) also has an activerecord ttype library for Mongo which Foursquare has built a DSL, Rogue, for. http://engineering.foursquare.com/2011/01/21/rogue-a-type-safe-scala-dsl-for-querying-mongodb/