Playing around with the hibernate framework