Hi,
I have been reading Spring 3.0.x documentation for integrating JPA 2.0 with Spring 3.0.
Section 13.5.2 in the documentation (Implementing DAOs based on plain JPA) says :
This seems to be a bit unclear as it doesnt talk about how PersistenceAnnotationBeanPostProcessor can be enabled in different ways. I now understand that PersistenceAnnotationBeanPostProcessor can either be enabled by defining a spring bean or by using context:annotation-config or component-scan or tx:annotation-driven.Spring can understand @PersistenceUnit and @PersistenceContext annotations both at field and method level if a PersistenceAnnotationBeanPostProcessor is enabled.


Reply With Quote
