public class EntityManagerFactoryCreator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GCUBE_RELEASES_ENDPOINT_NAME |
static org.slf4j.Logger |
logger |
static String |
PERSISTENCE_DB_GCUBE_RELEASES |
Modifier and Type | Method and Description |
---|---|
static javax.persistence.EntityManagerFactory |
getEntityManagerFactory()
Gets the entity manager factory.
|
static EntityManagerFactoryCreator |
getInstance(String rootScope)
Gets the single instance of EntityManagerFactoryCreator.
|
static EntityManagerFactoryCreator |
getInstanceTestMode(String rootScope)
USE ONLY IN TEST MODE
|
public static final String GCUBE_RELEASES_ENDPOINT_NAME
public static final String PERSISTENCE_DB_GCUBE_RELEASES
public static org.slf4j.Logger logger
public static EntityManagerFactoryCreator getInstance(String rootScope) throws Exception
rootScope
- the root scopeException
- the exceptionpublic static EntityManagerFactoryCreator getInstanceTestMode(String rootScope) throws Exception
rootScope
- Exception
public static javax.persistence.EntityManagerFactory getEntityManagerFactory()
Copyright © 2016. All Rights Reserved.