Removed deprecated methods
Updated Hibernate util to remove deprecated classes