Package org.hibernate.boot.models.xml.internal


package org.hibernate.boot.models.xml.internal
Support for processing mapping XML files and applying annotation references over the appropriate classes, fields and methods.

JPA defines 2 modes for applying mapping XML information, as covered under section 12.1 (Use of the XML Descriptor) of the specification-

metadata-complete
Annotations on the classes are ignored and all mapping metadata is taken from the mapping XML exclusively.
override
Values in the XML descriptor override or supplement the metadata define in annotations. The rules for this are fairly complex and covered in section 12.2 (XML Overriding Rules) of the specification.

When operating in metadata-complete mode, ManagedTypeProcessor will first clear all annotations from the managed type's class, fields and methods. This allows the same code to be used to apply the metadata in both modes.