tags:

views:

91

answers:

1

I want to learn Spring. I'd like to start with Spring 3. I want a simple tutorial and/or example. So no full blown web example please. Also - not a trivial example - so something incorporating persistence (e.g. JPA or hibernate) would be nice. Also - I don't want to get bogged down writing XML.

So - Annotation based Spring 3 with JPA and/or hibernate.

Yes - there is a good reference for Spring 3.0, but it's XML based. I can't find anything else useful.

Thanks in advance.

A: 

For the JPA configuration (persistence unit, JPA provider, entity and transaction manager) you will have to use XML configuration.

https://www.hibernate.org/441.html

http://icoloma.blogspot.com/2006/11/jpa-and-spring-fucking-cooltm_26.html

http://www.zabada.com/tutorials/hibernate-and-jpa-with-spring-example.php

For the entity classes you can use the JPA/EJB reference annotations

http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html

I was trying to get spring+hibernate working via JPA but got too many exceptions.

sibidiba
Do you know of any good tutorials examples that illustrate working with Hibernate transactions?
James