public final class PersistenceConfigurationFactory extends Object
Constructor and Description |
---|
PersistenceConfigurationFactory(Class<?>[] cfgClazzes) |
PersistenceConfigurationFactory(String persistenceUnit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
javax.persistence.EntityManager |
getEntityManager()
Returns the
EntityManager instance which is associated with the
configured persistence context. |
javax.persistence.EntityManagerFactory |
getEntityManagerFactory()
Returns the
EntityManagerFactory . |
int |
hashCode() |
public PersistenceConfigurationFactory(String persistenceUnit)
public PersistenceConfigurationFactory(Class<?>[] cfgClazzes)
public javax.persistence.EntityManager getEntityManager()
EntityManager
instance which is associated with the
configured persistence context.EntityManager
public javax.persistence.EntityManagerFactory getEntityManagerFactory()
EntityManagerFactory
.EntityManagerFactory
Copyright © 2014. All rights reserved.