Abstract
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 were 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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2009 Mike Keith and Merrick Schincariol
About this chapter
Cite this chapter
Keith, M., Schnicariol, M. (2009). XML Mapping Files. In: Pro JPA 2. Apress. https://doi.org/10.1007/978-1-4302-1957-6_12
Download citation
DOI: https://doi.org/10.1007/978-1-4302-1957-6_12
Publisher Name: Apress
Print ISBN: 978-1-4302-1956-9
Online ISBN: 978-1-4302-1957-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)