Adding hibernate support