开发者

What is the best scala-like persistence framework available right now?

What is the best scala-like persistence framework available right now?

Hibernate works, but it's not very scala-like. It insists on using annotations, no开发者_StackOverflow中文版-arg constructors, doesn't work with anonymous class instances, doesn't work with scala collections, has an outdated string-based query model, etc.

I'm looking for something that really fits Scala. Does it exist? Or do I have to make it?


Squeryl is a strongly typed, LINQ like persistence framework written entirely in Scala.
In any case, it looks very promising. There's also ScalaQuery by Stephan Zeiger, which has a similar approach.

I haven't tried these two out yet, but will likely do so in the very near future.


Old question and that's probably why no one mentioned Slick at the time, but that's a good choice nowadays. It's developed by Typesafe, so there's some assurance of quality and continuous development that other frameworks might not have.

Anyway, this link might be a good source for anyone looking for other options: http://manuel.bernhardt.io/2014/02/04/a-quick-tour-of-relational-database-access-with-scala/.


Lift has a persistence framework in scala, but it's integrated with the web framework and is a bit specialized.


I've not gotten a chance to evaluate it personally, but it looks like eBean is very Scala friendly. It even supports Scala types (as of Release 2.6.1).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜