Use eclipselink.classloader
to create an EntityMangerFactory
in the property map to be passed to Persistence.createEntityManagerFactory
.
Usage
This is a dynamic property that must be set at runime, in the property map. You cannot configure this property in the persistence.xml
file.
Examples
Example 5-10 shows how to use this extension in a property map
Example 5-10 Using classloader in a Property Map
properties.put("eclipselink.classloader", this.getClass().getClassLoader());
See Also
For more information, see: