This was working:
Use this configuration
hibernate configuration file:
POM:
cglib
cglib
${cglib-version}
runtime
org.hibernate
hibernate-entitymanager
${org.hibernate-version}
org.springframework
spring-orm
${org.springframework-version}
i forgot to include the versions, I am using hibernate version: 4.1.2.Final and spring version: 3.1.1.RELEASE, there is an update of hibernate 4.1.3.Final, not tested but I believe it will work fine.