Class EntityHierarchyBuilder
- java.lang.Object
-
- org.hibernate.boot.model.source.internal.hbm.EntityHierarchyBuilder
-
public class EntityHierarchyBuilder extends Object
Helper for dealing with entity inheritance hierarchies inhbm.xml
processing. Inhbm.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 Constructor Description EntityHierarchyBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<EntityHierarchySourceImpl>
buildHierarchies()
To 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.
-
-
-
Method Detail
-
buildHierarchies
public List<EntityHierarchySourceImpl> buildHierarchies() throws HibernateException
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
public void indexMappingDocument(MappingDocument mappingDocument)
Called for each mapping document.- Parameters:
mappingDocument
- Thehbm.xml
document to index
-
-