used hibernate annotations instead of xml