Sample java for hibernate 3.0