108 words

Persistent domain in Scala or Java...

2017-02-20 15:12

Hi Folks,

I am starting a new project which will be primarily written in Scala.  I need to choose a persistence mechanism for the domain model.  I have the option to write the domain in Java if that provides access to richer transparent persistence support.

My preference would be JPA.  Are there strong JPA-like libraries for Scala, or should I be considering Scala-specific persistence or using Java for the domain to take advantage of JPA / ObjectDB etc.

All input greatly appreciated,

Kind regards, Robin.

robinroos's picture
Joined on 2015-06-30
User Post #3
2017-02-24 10:02

You may be able to use ObjectDB with Scala, at least with some limitations.

See also a relevant forum post: Using Scala collections with ObjectDB.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support's picture
Joined on 2010-05-03
User Post #2,707

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Maximum file size: 32 MB