Community

JBJPA-27 and setting PersistenceUnitMetaData reference to PersistenceMetaData

reply from Carlo de Wolf in JBoss XML Binding Development - View the full discussion

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

Start a new discussion in JBoss XML Binding Development at Community