Community
Participate
Working Groups
Created attachment 147124 [details] JPA 2.0 PFD2 apis The current JPA 2.0 files used don't reflect the latest changes to the spec. I am attaching the updated API files as a contribution.
Created attachment 147125 [details] ORM XSD Latest orm.xsd file
Created attachment 147126 [details] persistence xsd XSD for persistence.xml file
Is there any Java EE standard or convention for where the XSDs should be located in the JAR?
Created attachment 147334 [details] Proposed patch including contributed code and EclipseLink specific fixes This patch was made @ \trunk\jpa\plugins\javax.persistence\src\javax\persistence
The proposed patch has several open issues that need to be discussed and resolved: 1. I have added provider caching in PersistenceProviderResolver.DefaultPersistenceProviderResolver. Do we want this and if so should we make it a single threaded operation to re-build the list of providers? 2. There were several ignored exceptions when processing provider services files for available providers. Should we log issues encountered with found names or throw exceptions. Currently only a ClassCastException is possible 3. The org.eclipse.persistence.javax.persistence.osgi.Activator's provider caching and clear support needs to be reviewed. Does the collecting of providers using the services need to be single threaded? See new initializeProviders method 4. The org.eclipse.persistence.javax.persistence.osgi.Activator has a log method. Should it support plugging a java.util.Logger/Stream/writer?
Created attachment 147454 [details] Proposed patch - v2
I have uploaded a second version of the patch. This version includes: /javax.persistence 1.99/src/javax/persistence/spi/PersistenceProviderResolverHolder.java - added support for tracking the service file URL with the provider name for diagnostics - added java.util.logging support for FINEST debug messages and WARNING listing of providers when none are found but service files with values were found - added support for ignoring ClassCastException when processing provider names - enhanced the provider caching support to be a WeakHashMap keyed by ClassLoader /javax.persistence 1.99/src/org/eclipse/persistence/javax/persistence/osgi/Activator.java - Reverted implementation to previous caching of providers relying on bundle start discovery of providers and provider registry after start - clearCachedProviders does nothing in this environment - added java.util.logging support The updated patch also includes 3 new classes that I accidentally missed making the first patch. The patch was built at: /svnroot/rt/org.eclipse.persistence/trunk/jpa/plugins/javax.persistence
I also updates the bundle version to be 1.99.6 for PFD2
The API in trunk matches the most recent JPA 2.0 api.
moved ipLog to patches.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink