first hibernate implementation