Migrated to Hibernate 4.