Hibernate txns

Changed the approach to transaction management