Fixed Hibernate problem.