We use XML because we did not want the annotations on the entity. For a possible different model.
However, I don't see us moving away from JPA.
Would be good to make the code more simple, and getting rid if, and use annotations