tags:

views:

221

answers:

1

What is the difference between the two if any? Should 1 or both be used on an entity?

+2  A: 

For entity there's practically no difference. @Immutable gets priority (that is if you have entity that's annotated both as @Immutable and @Entity(mutable = "true") it is going to be treated as immutable).

@Immutable can also be used on collections with pretty much the same semantics. Details are here

ChssPly76
Yup I have a print out of the same doc but it does not distinguish btw the 2, just states what they are and what they can do, in this case they both do the same thing for entity(with `@immutable` applying to collections as well).
non sequitor
It's not well documented, no. `EntityBinder` source comments describe the above mentioned priority.
ChssPly76