persistence@glassfish.java.net

Recent changes to PersistenceUnitProcessor

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Fri, 20 Oct 2006 23:43:21 +0530

Hi Tom,

I have not run any test to validate what I am writing here, but I
thought I should let you know any way. I now see a new method called
*private static Set<String>
buildPersistentClassSetFromXMLDocuments(PersistenceUnitInfo,
ClassLoader)* in PersistenceUnitProcessor class. This method creates a
MetadataProcessor and reads all the mapping XML files in order to build
a list of classes and throws away the MetadataProcessor. As a result of
this change, are we not reading XML mapping files more than once? Shall
I reopen https://glassfish.dev.java.net/issues/show_bug.cgi?id=1115 ?

Thanks,
Sahoo