update for hibernate