This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Antw.: Persistence framework

No replies
Christopher Sch...
Joined: 2009-12-05,
User offline. Last seen 42 years 45 weeks ago.
Check out scalajpa or JPA-for-Scala at Github.

Both can use any available JPA framework.

Best regards
Christopher Schmidt
http://blog.FaKod.Eu

----- Reply message -----
Von: "Ken Egervari" <ken.egervari@gmail.com>
Datum: Mi., Mai. 19, 2010 14:10
Betreff: [scala-user] Persistence framework
An: "scala-user" <scala-user@listes.epfl.ch>

Hi everyone,

Are there any standalone persistence frameworks that work really well with scala? I've looked a bunch, and I can't say I'm really happy with any of them as a whole.  I'm actually a tempted to make one.

My motivation for finding something better is that Hibernate, while a good tool, is just really clunky with Scala. Especially with Spring when using the Hibernate Template. Hibernate also doesn't work well with anonymous class instances and traits, which are pretty common in my everyday use of the language at this point.

With Scala, it's possible to create something that is really light-weight. It's possible to make something without annotations and proxy objects. It's possible to make the querying really strongly typed and look fantastic.

Hell, it's possible to do pretty nice declarative transaction management in your service layer too. Given some effort, Spring and Hibernate are kind of obsolete.

The only problem is the time to build something. I obviously couldn't support dialects of databases I don't ever use. There's quite a few database features I never plan to use, so I'd be trying to build a subset. But of course, it'll get replaced eventually by a real Open source framework at some point.

Is there something out there I might have missed?

Ken

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland