ORM supporting immutable classes

Posted by Thomas Jung on Stack Overflow See other posts from Stack Overflow or by Thomas Jung
Published on 2010-04-23T12:59:45Z Indexed on 2010/04/23 13:03 UTC
Read the original article Hit count: 312

Filed under:
|
|
|
|

Which ORM supports a domain model of immutable types?

I would like to write classes like the following:

class A {
  private final C c; //not mutable

  A(B b) {
     //init c
  }

  A doSomething(B b) {
     // build a new A
  }
}

© Stack Overflow or respective owner

Related posts about java

Related posts about scala