You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by andiqo <no...@gmail.com> on 2008/10/16 16:28:48 UTC

immutability and persistence?

Hello!

I was wondering if I could expect performance boost using immutable
instances over mutable ones, regarding persistence?! Is it right to say: no
more concurrent version detection, no 'version' column but state manager
still needed for the immutable instance? Do I miss something?

2nd question : I use 'updatable = false' for my immutable instances, but
could I also use the 'final' Java keyword or JPA wouldn't allow it?

3rd question : If an instance has a List<?> as field, which size is known at
creation time. Could I initialize the List with null values and add 
'updatable = false' for the field?

Thanks a lot for your help and your great job!
nicolas
-- 
View this message in context: http://n2.nabble.com/immutability-and-persistence--tp1341228p1341228.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.