Test hibernate framework for better understanding