Re: Pattern for unmodifiable Collections

2009-04-08 Thread Pinaki Poddar
OpenJPA PMC Member/Committer JPA Expert Group Member -- View this message in context: http://n2.nabble.com/Pattern-for-unmodifiable-Collections-tp2600278p2604302.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Pattern for unmodifiable Collections

2009-04-08 Thread Judes Tumuhairwe
JPA Expert Group Member -- View this message in context: http://n2.nabble.com/Pattern-for-unmodifiable-Collections-tp2600278p2604302.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Pattern for unmodifiable Collections

2009-04-08 Thread Paul Copeland
- Pinaki Poddar http://ppoddar.blogspot.com/ http://www.linkedin.com/in/pinakipoddar OpenJPA PMC Member/Committer JPA Expert Group Member -- View this message in context: http://n2.nabble.com/Pattern-for-unmodifiable-Collections-tp2600278p2604302.html Sent from the OpenJPA Users

Pattern for unmodifiable Collections

2009-04-07 Thread Paul Copeland
I am trying to provide JPA persistent objects in a framework. If I return a ManyToMany Collection the user has to understand what side is the mappedBy owner and be careful to update both sides. There are other reasons for wanting to restrict updates to OneToMany relations. Is there a way to