Fully functional hibernate implementation