A work-in-progress look at a more phased approach to how Hibernate reads annotation
and XML based mapping information. Specifically here we are looking at the process
used to build the org.hibernate.mapping
model - the so-called boot model.
See HHH-16114 for details and discussion.
There are a few inter-related goals for this work -
-
More phased approach compared to the current "second pass" approach
-
Replace HCANN with Jandex for low-level annotation reading
-
Extended orm.xml support (drop hbm.xml)
-
Better leverage of "temp class loader"
-
Re-usability across projects[1]
- hibernate-models-common
-
Common stuff - duh
- hibernate-models-source
-
An abstraction over reflection and annotation
- hibernate-models-intermediate
-
First set of phases to categorize a domain model -
-
Simple categorization of entity v. embeddable v. “simple” class
-
Light categorization of attributes
-
Application of XML via JAXB - overlay and override
-
Normalization of values
-
Definitely need a better name for hibernate-models-intermediate