Carlo de Wolf [
http://community.jboss.org/people/wolfc] replied to the discussion
"JBJPA-27 and setting PersistenceUnitMetaData reference to PersistenceMetaData"
To view the discussion, visit:
http://community.jboss.org/message/540767#540767
--------------------------------------------------------------
If I read JAXB 2.2 5.5.2.2 correctly it's correct that the CollectionPropertyHandler
first calls List<Type> getId() to see if a collection exists. (In fact it says a
setter is not allowed.)
To solve the problem at hand, PersistenceMetaData should return a 'managed' list
which keeps track of additions. Similar to EnterpriseBeansMetaData. With some helpers it
could probably be the list itself.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/540767#540767]
Start a new discussion in JBoss XML Binding Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]