made hibernate work with annotations