List of usage examples for org.springframework.orm.jpa.support PersistenceAnnotationBeanPostProcessor PersistenceAnnotationBeanPostProcessor
PersistenceAnnotationBeanPostProcessor
From source file:net.przemkovv.sphinx.config.JpaConfig.java
@Bean public PersistenceAnnotationBeanPostProcessor getPersistenceAnnotationBeanPostProcessor() { logger.debug("Bean initialization: PersistenceAnnotationBeanPostProcessor"); return new PersistenceAnnotationBeanPostProcessor(); }
From source file:br.com.shopcarpet.config.JpaConfig.java
@Bean public PersistenceAnnotationBeanPostProcessor paPostProcessor() { return new PersistenceAnnotationBeanPostProcessor(); }
From source file:dirty.mockito.junit.rules.ActiveTestRule.java
/** * @param em//from w w w. j a va 2s . c o m * the (mock) {@link EntityManager} */ private void registerMockEntityManagerFactory(final EntityManager em) { final MockEntityManagerFactory mockEntityManagerFactory = new MockEntityManagerFactory(em); beanFactory.registerSingleton("entityManagerFactory", mockEntityManagerFactory); final PersistenceAnnotationBeanPostProcessor pabpp = new PersistenceAnnotationBeanPostProcessor(); pabpp.setBeanFactory(beanFactory); beanFactory.addBeanPostProcessor(pabpp); }
From source file:cn.newgxu.lab.core.config.SpringBeans.java
@Bean public PersistenceAnnotationBeanPostProcessor persistenceAnnotationBeanPostProcessor() { return new PersistenceAnnotationBeanPostProcessor(); }