From: Juergen H. <jho...@us...> - 2006-08-08 09:30:01
|
Update of /cvsroot/springframework/spring/samples/petclinic/war/WEB-INF In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9372/samples/petclinic/war/WEB-INF Modified Files: applicationContext-jpa.xml Log Message: refined comments Index: applicationContext-jpa.xml =================================================================== RCS file: /cvsroot/springframework/spring/samples/petclinic/war/WEB-INF/applicationContext-jpa.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** applicationContext-jpa.xml 20 Jun 2006 10:41:07 -0000 1.2 --- applicationContext-jpa.xml 8 Aug 2006 09:29:58 -0000 1.3 *************** *** 50,54 **** ! <aop:aspectj-autoproxy /> <!-- --- 50,58 ---- ! <!-- ! Instruct Spring to retrieve and apply @AspectJ aspects which are defined ! as beans in this context (such as the UsageLogAspect below). ! --> ! <aop:aspectj-autoproxy/> <!-- *************** *** 69,85 **** <!-- ! PostProcessors to perform exception translation on @Repository classes ! and injection according to the JPA specification. ! A JPA namespace handler will simplify specification of entity manager factories ! and remove the requirement for these bean definitions in 2.0 final. --> - <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/> - <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/> <!-- ! Will automatically be transactional due to annotation usage. EntityManager will be auto-injected due to @PersistenceContext. --> <bean id="clinic" class="org.springframework.samples.petclinic.jpa.EntityManagerClinic"/> --- 73,92 ---- <!-- ! PostProcessors to perform resource injection according to the JPA specification ! (@PersistenceContext, @PersistenceUnit). --> <bean class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor"/> + <!-- + PostProcessors to perform exception translation on @Repository classes (from native + exceptions such as JPA PersistenceExceptions to Spring's DataAccessException hierarchy). + --> + <bean class="org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor"/> + <!-- ! Will automatically be transactional due to @Transactional. EntityManager will be auto-injected due to @PersistenceContext. + PersistenceExceptions will be auto-translated due to @Repository. --> <bean id="clinic" class="org.springframework.samples.petclinic.jpa.EntityManagerClinic"/> |