use of org.hibernate.boot.model.source.spi.IdentifiableTypeSource in project hibernate-orm by hibernate.
the class ModelBinder method bindUnionSubclassEntities.
private void bindUnionSubclassEntities(EntitySource entitySource, PersistentClass superEntityDescriptor) {
for (IdentifiableTypeSource subType : entitySource.getSubTypes()) {
final UnionSubclass subEntityDescriptor = new UnionSubclass(superEntityDescriptor, metadataBuildingContext);
bindUnionSubclassEntity((SubclassEntitySourceImpl) subType, subEntityDescriptor);
superEntityDescriptor.addSubclass(subEntityDescriptor);
entitySource.getLocalMetadataBuildingContext().getMetadataCollector().addEntityBinding(subEntityDescriptor);
}
}
use of org.hibernate.boot.model.source.spi.IdentifiableTypeSource in project hibernate-orm by hibernate.
the class ModelBinder method bindJoinedSubclassEntities.
private void bindJoinedSubclassEntities(AbstractEntitySourceImpl entitySource, PersistentClass superEntityDescriptor) {
for (IdentifiableTypeSource subType : entitySource.getSubTypes()) {
final JoinedSubclass subEntityDescriptor = new JoinedSubclass(superEntityDescriptor, metadataBuildingContext);
bindJoinedSubclassEntity((JoinedSubclassEntitySourceImpl) subType, subEntityDescriptor);
superEntityDescriptor.addSubclass(subEntityDescriptor);
entitySource.getLocalMetadataBuildingContext().getMetadataCollector().addEntityBinding(subEntityDescriptor);
}
}
use of org.hibernate.boot.model.source.spi.IdentifiableTypeSource in project hibernate-orm by hibernate.
the class ModelBinder method bindDiscriminatorSubclassEntities.
private void bindDiscriminatorSubclassEntities(AbstractEntitySourceImpl entitySource, PersistentClass superEntityDescriptor) {
for (IdentifiableTypeSource subType : entitySource.getSubTypes()) {
final SingleTableSubclass subEntityDescriptor = new SingleTableSubclass(superEntityDescriptor, metadataBuildingContext);
bindDiscriminatorSubclassEntity((SubclassEntitySourceImpl) subType, subEntityDescriptor);
superEntityDescriptor.addSubclass(subEntityDescriptor);
entitySource.getLocalMetadataBuildingContext().getMetadataCollector().addEntityBinding(subEntityDescriptor);
}
}
Aggregations