Pro JPA 2 pp 379-418 | Cite as

XML Mapping Files

  • Mike Keith
  • Merrick Schincariol


Back in the early days, after the release of Java SE 5, there was a quiet, and sometimes not-so-quiet, debate about whether annotations were better or worse than XML. The defenders of annotations vigorously proclaimed how annotations are so much simpler and provide in-lined metadata that is co-located with the code that it is describing. The claim was that this avoids the need to replicate the information that is inherent in the source code context of where the metadata applies. The XML proponents then retorted that annotations unnecessarily couple the metadata to the code, and that changes to metadata should not require changes to the source code.


Mapping File Entity Class Embeddable Element Target Entity Entity Element 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Mike Keith 2013

Authors and Affiliations

  • Mike Keith
    • 1
  • Merrick Schincariol
    • 1
  1. 1.ONCanada

Personalised recommendations