Scott Marlow [
http://community.jboss.org/people/smarlow%40redhat.com] replied to the
discussion
"JBJPA-27 and setting PersistenceUnitMetaData reference to PersistenceMetaData"
To view the discussion, visit:
http://community.jboss.org/message/540464#540464
--------------------------------------------------------------
Is there any reason why CollectionPropertyHandler.handle(PropertyInfopropertyInfo,
TypeInfo propertyType, Object parent, Object child, QName
qName) couldn't call the the getter after setting the field? It appears that we call
the getter before the set, but not after.
It is no good to wait until the application calls the getter (since the application may
first call PUMD.getPMD() which would return null.
If the convention is to put initialization logic in the getter, perhaps XB should call the
getter after setting the field.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/540464#540464]
Start a new discussion in JBoss XML Binding Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]