[hibernate-issues] [Hibernate-JIRA] Created: (EJB-247) HibernatePersistence does not play well with other PersistenceProviders
Jeff Drost (JIRA)
noreply at atlassian.com
Tue Nov 7 11:36:04 EST 2006
HibernatePersistence does not play well with other PersistenceProviders
-----------------------------------------------------------------------
Key: EJB-247
URL: http://opensource.atlassian.com/projects/hibernate/browse/EJB-247
Project: Hibernate Entity Manager
Type: Bug
Components: EntityManager
Versions: 3.2.0.ga
Environment: all
Reporter: Jeff Drost
When HibernatePersistence is called to create a EntityManagerFactory, Ejb3Configuration.configure() is called. If configure() determines that persistence.xml refers to a non-hibernate provider, then it is not used, and null will be returned. HibernatePersistence never checks the return value of configure() and then calls buildEntityManagerFactory() - which will throw an exception. This stops javax.persistence.Persistence from searching for another provider.
I would think HibernatePersistence should check the return value of configure() and only call buildEntityManagerFactory() if the result is non-null. Otherwise, null should be returned.
--
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.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list