hibernate sample codes