[jboss-dev-forums] [JBoss XML Binding Development] - JBJPA-27 and setting PersistenceUnitMetaData reference to PersistenceMetaData
Carlo de Wolf
do-not-reply at jboss.com
Mon May 3 09:06:37 EDT 2010
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&containerType=14&container=2065]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100503/f4438e1a/attachment.html
More information about the jboss-dev-forums
mailing list