Fixed id problem with hibernate