I've been working with @Configuration classes with mixed results. It seems like it should be possible to replace...
with...Code:<bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"> <property name="defaultPersistenceUnitName" value="truth" /> </bean>
However, this seems cause existing BeanProstProcessors on the ApplicationContext to break. In my case I am using a PropertyPlaceholderConfigurer which stops working once the PersistenceAnnotationBeanPostProcessor is created. Am I missing something?Code:@Bean public PersistenceAnnotationBeanPostProcessor persistenceAnnotationBeanPostProcessor() { PersistenceAnnotationBeanPostProcessor proc = new PersistenceAnnotationBeanPostProcessor(); proc.setDefaultPersistenceUnitName("my-unit"); return proc; }
Thanks


Reply With Quote