Hibernate transaction to pom