bin's hibernate model