O'Reilly logo
  • Gangadhara Melukote thinks this is interesting:

  • Process the annotations. The set of entities, mapped superclasses, and embedded objects (we’ll call this set E) is discovered by looking for the @Entity, @MappedSuperclass, and @Embeddable annotations. The class and method annotations in all the classes in set E are processed, and the resulting metadata is stored in set C. Any missing metadata that was not explicitly specified in the annotations is left empty.
  • Add the classes defined in XML. Look for all the entities, mapped superclasses, and embedded objects that are defined in the mapping files and add them to E. If we find that one of the classes already exists in E, we apply the overriding rules for class-level metadata that we found in the mapping file. Add o...
  • From

    Cover of Pro JPA 2, Second Edition

    Note

    How Metadata processor works.