adding hibernate stuff