I think maybe instead of using this hardcoded entity mapping, we can use the jpa annotations on the entity and if someone wants to override them they can use xml configuration for it for their own needs?