public class JpaSpringSupport extends Object implements OrmSpringSupport<javax.persistence.EntityManagerFactory,Object>
OrmSpringSupport for JPA. Enables retrieving a JPA EntityManagerFactory
that was configured in a spring ApplicationContext| Constructor and Description |
|---|
JpaSpringSupport() |
| Modifier and Type | Method and Description |
|---|---|
ConfiguredOrmPersistenceUnit<javax.persistence.EntityManagerFactory,Object> |
getConfiguredPersistenceUnit(Object testObject) |
protected org.springframework.orm.jpa.AbstractEntityManagerFactoryBean |
getEntityManagerFactoryBean(Object testObject) |
protected JpaModule |
getJpaModule() |
protected SpringModule |
getSpringModule() |
boolean |
isPersistenceUnitConfiguredInSpring(Object testObject) |
public boolean isPersistenceUnitConfiguredInSpring(Object testObject)
isPersistenceUnitConfiguredInSpring in interface OrmSpringSupport<javax.persistence.EntityManagerFactory,Object>testObject - The test instance, not nullApplicationContext is associated with the given test object,
and if a persistence unit of the type supported by this interface's implementation is availablepublic ConfiguredOrmPersistenceUnit<javax.persistence.EntityManagerFactory,Object> getConfiguredPersistenceUnit(Object testObject)
getConfiguredPersistenceUnit in interface OrmSpringSupport<javax.persistence.EntityManagerFactory,Object>testObject - The test instance, not nullConfiguredOrmPersistenceUnit that wraps the persistence unit and the
configuration objectprotected org.springframework.orm.jpa.AbstractEntityManagerFactoryBean getEntityManagerFactoryBean(Object testObject)
testObject - The test instance, not nullLocalSessionFactoryBean that wraps the configuration of hibernate in springprotected SpringModule getSpringModule()
protected JpaModule getJpaModule()
Copyright © 2017. All rights reserved.