]
Emmanuel Bernard resolved OGM-160.
----------------------------------
Resolution: Fixed
Invalid persistence unit configuration might result in
NullPointerException
---------------------------------------------------------------------------
Key: OGM-160
URL:
https://hibernate.onjira.com/browse/OGM-160
Project: Hibernate OGM
Issue Type: Bug
Reporter: Sanne Grinovero
Assignee: Sanne Grinovero
Fix For: 4.0-next
If the persistence unit name mentioned in the configuration file is not matching the name
passed to the initialization method, the Persistence provider is expected to return null.
The HibernateOgmPersistence is not prepared to deal with null return values from the
delegate, and returns instead an unusable EntityManagerFactory.
{code}
Persistence.createEntityManagerFactory( "does-not-exist-PU" );
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: