Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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-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?

like image 375
egervari Avatar asked May 18 '10 18:05

egervari


2 Answers

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.

like image 126
Arjan Blokzijl Avatar answered Nov 19 '22 03:11

Arjan Blokzijl


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/.

like image 42
redwulf Avatar answered Nov 19 '22 01:11

redwulf