Class EntityHierarchyBuilder
java.lang.Object
org.hibernate.boot.model.source.internal.hbm.EntityHierarchyBuilder
Helper for dealing with entity inheritance hierarchies in
hbm.xml
processing. In hbm.xml
the super/sub may be split across documents.
The purpose of this class is to:- validate that all hierarchies are complete (make sure a mapping does not reference an unknown entity as its super)
- ultimately order the processing of every entity to make sure we process each hierarchy "downward" (from super to sub(s)).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionTo be called after all mapping documents have been processed (viaindexMappingDocument(org.hibernate.boot.model.source.internal.hbm.MappingDocument)
)void
indexMappingDocument
(MappingDocument mappingDocument) Called for each mapping document.
-
Constructor Details
-
EntityHierarchyBuilder
public EntityHierarchyBuilder()
-
-
Method Details
-
buildHierarchies
To be called after all mapping documents have been processed (viaindexMappingDocument(org.hibernate.boot.model.source.internal.hbm.MappingDocument)
)- Returns:
- The built hierarchies
- Throws:
HibernateException
- Indicates subclass mappings still waiting to be linked to their super types
-
indexMappingDocument
Called for each mapping document.- Parameters:
mappingDocument
- Thehbm.xml
document to index
-