Community

JBJPA-27 and setting PersistenceUnitMetaData reference to PersistenceMetaData

reply from Ales Justin in JBoss XML Binding Development - View the full discussion

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

Start a new discussion in JBoss XML Binding Development at Community