Pinaki - If I remember correctly, we are at the mercy of the order that the classloader returns the p.xml files. As the message states, the first one encountered wins. So if you're not first, you're last.
-Rick Pinaki Poddar wrote: > > ... > Got scores of them all over. But I really liked the following message: > > 31 default WARN [main] openjpa.Runtime - The persistence unit > "default" was found multiple times in the following resources > "[file:/C:/projects/fields-enum/src/conf/META-INF/persistence.xml, > file:/C:/projects/fields-enum/build/conf/META-INF/persistence.xml]", but > persistence unit names should be unique. The first persistence unit > matching the provided name in > "file:/C:/projects/fields-enum/src/conf/META-INF/persistence.xml" is being > used. > > By the way, what is the criteria you use to pick up one persistence.xml > over other when multiple PUs exist of same name? > > -- View this message in context: http://n2.nabble.com/Dynamic-class-enhancer-and-Java-5-tp3031106p3031999.html Sent from the OpenJPA Developers mailing list archive at Nabble.com.
