Hibernate warnning fixed