views:

269

answers:

3

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?

A: 

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

sblundy
A: 

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

This looks very bloated. Really, all those getters and setters are ugly as hell. We don't need that in scala. There is no point to do that in scala.
egervari
You don't need Java Getters and Setters. Ebean can detect that the 'bean' is a Scala bean and use 'Scala Properties'.
Rob
+3  A: 

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.

Arjan Blokzijl