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-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/.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With