Ales Justin [
http://community.jboss.org/people/alesj] replied to the discussion
"JBJPA-27 and setting PersistenceUnitMetaData reference to PersistenceMetaData"
To view the discussion, visit:
http://community.jboss.org/message/540014#540014
--------------------------------------------------------------
What about if you simply populated PUMDs with PMD on get instead of set?
+ for( Iterator<PersistenceUnitMetaData> iter = persistenceUnits.iterator();
iter.hasNext(); )
+ {
+ PersistenceUnitMetaData pumd = iter.next();
+ pumd.setPersistenceMetaData(this);
+ }
This code can be reduced a lot -- JDK5 for loop. ;-)
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/540014#540014]
Start a new discussion in JBoss XML Binding Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]