Fixed a Transactional problem on hibernate

Added the transaction platform