Results 1 to 6 of 6

Thread: Spring Documentation on integrating Spring and JPA is not correct

Threaded View

  1. #1
    Join Date
    May 2011
    Posts
    11

    Default Spring Documentation on integrating Spring and JPA is abit unclear

    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 :

    Spring can understand @PersistenceUnit and @PersistenceContext annotations both at field and method level if a PersistenceAnnotationBeanPostProcessor is enabled.
    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.
    Last edited by kumara; May 19th, 2011 at 07:13 AM. Reason: Unclear understanding

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •