adding hibernate support