Getting an object back from the database using a primary key value (1):
user = (UserDetails) session.get(PersonDetails.class, 1).