hibernate utility class