Update Hibernate mapping, and added hibernate test sample class.