Patch to allow locating persistence.xml and orm.xml under OSGi
--------------------------------------------------------------
Key: HHH-5361
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5361
Project: Hibernate Core
Issue Type: Patch
Components: entity-manager
Environment: Hibernate 3.3.2.GA, PostgreSQL 8.4, OSGi
(org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar)
Reporter: Christoph G. Baumann
Priority: Minor
Attachments: JarVisitorFactory.java.patch
Using Hibernate under OSGi caused me trouble because /META-INF/persistence.xml and
/META-INF/orm.xml can't be accessed the way the Entity-Manger tries to do. So I
extended JarVisitorFactory.java to be able to deal with URLs starting with
"bundleresource://". If such an URL is requested the above mentioned files are
fetched and stored in a JAR in the temporary directory (e.g. /tmp). The method then
returns the "file://" URL to this JAR file.
Maybe this extension could be useful for others too.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira