The collection is managed by hibernate and you are not allowed to change the collection instance.
I would add a setter in the hand written subclass like this: public void setPersons(List<Person> persons) { getPersons().clear(); getPersons().addAll(persons); } /Patrik saadkhawaja wrote: > > Hi > I have a ValueObject and a collection on it like so. > ValueObject MyValueObject { > !immutable > List<Person> persons changeable > } > > The code generated makes the setter for this collection private. I would > like it to be public, why, because of bean copying utilities. > Do I need to do something else to make that setter public. > Thanks > Saad > -- View this message in context: http://www.nabble.com/valueobject-collection-private-tp23724800s17564p23727799.html Sent from the Fornax-Platform mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer