Scala中是否有任何类似于orm的mongodb库? [英] Is there any orm-like library for mongodb in scala?

查看:99
本文介绍了Scala中是否有任何类似于orm的mongodb库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎只有casbah我们可以在scala中使用,但我希望有一个类似orm的scala库,例如java的morphia或其他东西.

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.

有没有?我不想在Scala中使用morphia,因为我必须将Java集合转换为Scala

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

更新

我尝试了其中一些,但仍然找不到合适的一个. Scala新手很难入门.

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

最后

最后,我选择了很棒的 mongo-scala-driver .谢谢大家.

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

推荐答案

有两个可靠的选择:

Salat,旨在使用案例类和scalasig与Casbah集成- https://github.com/novus/salat/

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

Lift(liftweb.net)还为Mongo提供了一个activerecord ttype库,Foursquare为此构建了DSL Rogue. http://engineering.foursquare.com/2011/01/21/rogue-a-type-safe-scala-dsl-for-querying-mongodb/

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/

这篇关于Scala中是否有任何类似于orm的mongodb库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆