HHH-7484 Making sure the mapped super class list is initalized

This commit is contained in:
Hardy Ferentschik 2012-08-02 10:55:45 +02:00
parent 449d020d04
commit ddaf155423
1 changed files with 2 additions and 2 deletions

View File

@ -52,6 +52,7 @@ import org.hibernate.metamodel.spi.binding.InheritanceType;
public class RootEntityClass extends EntityClass {
private final IdType idType;
private final List<MappedSuperclass> mappedSuperclasses;
// discriminator related fields
private Column discriminatorColumnValues;
@ -63,8 +64,6 @@ public class RootEntityClass extends EntityClass {
private boolean needsDiscriminatorColumn = false;
private List<MappedSuperclass> mappedSuperclasses;
/**
* Constructor used for entity roots
*
@ -83,6 +82,7 @@ public class RootEntityClass extends EntityClass {
boolean hasSubclasses,
AnnotationBindingContext context) {
super( classInfo, null, hierarchyAccessType, inheritanceType, context );
this.mappedSuperclasses = new ArrayList<MappedSuperclass>();
for ( ClassInfo mappedSuperclassInfo : mappedSuperclasses ) {
MappedSuperclass configuredClass = new MappedSuperclass(
mappedSuperclassInfo,