String type is immutable, meaning if you are holding on a reference to it,
it will never be changed even it is "modified" since a new object/reference
will be created.

List type is not immutable, regardless of if it is used in an JPA Entity,
either managed or detached.

Not sure exactly what you are looking for but an example may be helpful
here.



On Tue, Oct 22, 2013 at 9:27 AM, José Luis Cetina <maxtorz...@gmail.com>wrote:

> Hi, i want to know if the default openjpa behavior about list attributes in
> an entity
>
> When i retrieve and entity (that has list values) and detached it from em
> and then return (from ejb) to my web tier (jsf app), the list values are
> immutable but other object are mutables like strings, I cannot find in the
> specification if this is the expected behavior, the list values have to be
> immutables in an entity even when the entity is detached?
>
> Thanks
>



-- 
Albert Lee.

Reply via email to