HHH-7484 Making sure the mapped super class list is initalized
This commit is contained in:
parent
449d020d04
commit
ddaf155423
|
@ -52,6 +52,7 @@ import org.hibernate.metamodel.spi.binding.InheritanceType;
|
||||||
public class RootEntityClass extends EntityClass {
|
public class RootEntityClass extends EntityClass {
|
||||||
|
|
||||||
private final IdType idType;
|
private final IdType idType;
|
||||||
|
private final List<MappedSuperclass> mappedSuperclasses;
|
||||||
|
|
||||||
// discriminator related fields
|
// discriminator related fields
|
||||||
private Column discriminatorColumnValues;
|
private Column discriminatorColumnValues;
|
||||||
|
@ -63,8 +64,6 @@ public class RootEntityClass extends EntityClass {
|
||||||
private boolean needsDiscriminatorColumn = false;
|
private boolean needsDiscriminatorColumn = false;
|
||||||
|
|
||||||
|
|
||||||
private List<MappedSuperclass> mappedSuperclasses;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor used for entity roots
|
* Constructor used for entity roots
|
||||||
*
|
*
|
||||||
|
@ -83,6 +82,7 @@ public class RootEntityClass extends EntityClass {
|
||||||
boolean hasSubclasses,
|
boolean hasSubclasses,
|
||||||
AnnotationBindingContext context) {
|
AnnotationBindingContext context) {
|
||||||
super( classInfo, null, hierarchyAccessType, inheritanceType, context );
|
super( classInfo, null, hierarchyAccessType, inheritanceType, context );
|
||||||
|
this.mappedSuperclasses = new ArrayList<MappedSuperclass>();
|
||||||
for ( ClassInfo mappedSuperclassInfo : mappedSuperclasses ) {
|
for ( ClassInfo mappedSuperclassInfo : mappedSuperclasses ) {
|
||||||
MappedSuperclass configuredClass = new MappedSuperclass(
|
MappedSuperclass configuredClass = new MappedSuperclass(
|
||||||
mappedSuperclassInfo,
|
mappedSuperclassInfo,
|
||||||
|
|
Loading…
Reference in New Issue