[hibernate-issues] [Hibernate-JIRA] Created: (OGM-160) Invalid persistence unit configuration might result in NullPointerException
Sanne Grinovero (JIRA)
noreply at atlassian.com
Thu Apr 19 12:32:50 EDT 2012
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: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list