[AI-483] Resolved problems with migration to Hibernate 4.2.8