[jboss-dev-forums] [JBoss XML Binding Development] - JBJPA-27 and setting PersistenceUnitMetaData reference to PersistenceMetaData

Ales Justin do-not-reply at jboss.com
Wed Apr 28 09:13:43 EDT 2010


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&containerType=14&container=2065]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100428/a44a63bb/attachment.html 


More information about the jboss-dev-forums mailing list