I'm developing a Spring based JPA application in which I have a couple of Entities that I would like to map using the XML configuration file rather than using Annotations. I get some exceptions during startup and it is primarily due to the invalid usage of a couple of tags. For this reason, I thought of looking at the XSD and to my surprise I was not able to find it in the link that I mentioned above. Any ideas?
Whiyh is considered as a good practice for Entity mapping (Annotations or XML)? In my application, my plan is to use the Entity POJO's also as a DTO object. In such a case, is it advisable to send this DTO object with full Annotations to be used in the UI layer?