[hibernate-issues] [Hibernate-JIRA] Updated: (OGM-164) When persistence provider is not specified the EMF creation taking a PersistenceUnitInfo defaults to OGM instead of plain ORM

Sanne Grinovero (JIRA) noreply at atlassian.com
Wed Apr 25 10:53:48 EDT 2012


     [ https://hibernate.onjira.com/browse/OGM-164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sanne Grinovero updated OGM-164:
--------------------------------

    Description: 
Basically the method
org.hibernate.ogm.jpa.HibernateOgmPersistence.createContainerEntityManagerFactory(PersistenceUnitInfo, Map)

when checking on {code}persistenceProviderClassName == null{code} should return null rather than attempt to start OGM.

trivial fix but requires a test as this wasn't covered.

  was:
Basically the method
org.hibernate.ogm.jpa.HibernateOgmPersistence.createContainerEntityManagerFactory(PersistenceUnitInfo, Map)

should not have the check on {code}persistenceProviderClassName == null{code} but return null.

trivial fix but requires a test as this wasn't covered.


> When persistence provider is not specified the EMF creation taking a PersistenceUnitInfo defaults to OGM instead of plain ORM
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OGM-164
>                 URL: https://hibernate.onjira.com/browse/OGM-164
>             Project: Hibernate OGM
>          Issue Type: Bug
>          Components: core
>            Reporter: Sanne Grinovero
>             Fix For: 4.0-next
>
>
> Basically the method
> org.hibernate.ogm.jpa.HibernateOgmPersistence.createContainerEntityManagerFactory(PersistenceUnitInfo, Map)
> when checking on {code}persistenceProviderClassName == null{code} should return null rather than attempt to start OGM.
> trivial fix but requires a test as this wasn't covered.

--
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