Spring 2 Hibernate Annotation

Spring 2 Hibernate Annotation

I am setting up Hibernate Annotation (User JPA for mapping) with Spring. (i.e. AnnotationSessionFactoryBean)

I have a few questions

  1. Do I need a hibernate.cfg.xml for mapping?
  2. From the example http://www.zabada.com/tutorials/hibernate-and-jpa-with-spring-example.php, it seems you need to do AOP, do you really need that? I saw a lot of example doesn't have that?

Is there any good tutorial around the web?

Thanks Roy

Best way to manually pull a spring bean?


Refreshing/replacing beans in the ApplicationContext. Possible or am I missing the point?
  1. The annotations drive the mapping so you don't need the mapping file as well.
  2. I use Spring & Hibernate without AOP so i don't think it's required.
There's a rather terse tutorial here.

Can't send email using Spring and Quartz
It's using Spring 3 but i don't think that affects the JPA stuff..
log4j:WARN No appenders could be found for logger in web.xml

Intercepting requests before they go to the controller in an annotation-based Spring web-app

70 out of 100 based on 70 user ratings 1270 reviews