[
http://opensource.atlassian.com/projects/hibernate/browse/EJB-247?page=all ]
Emmanuel Bernard resolved EJB-247:
----------------------------------
Fix Version: 3.2.1
Resolution: Fixed
Assign To: Emmanuel Bernard
Ah good catch.
Fixed in branch_3_2
Thanks
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
Assignee: Emmanuel Bernard
Fix For: 3.2.1
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira