diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/annotations/AnnotationMetadataSourceProcessorImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/annotations/AnnotationMetadataSourceProcessorImpl.java index a7068647e4..69e1ba353f 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/annotations/AnnotationMetadataSourceProcessorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/annotations/AnnotationMetadataSourceProcessorImpl.java @@ -234,9 +234,9 @@ public class AnnotationMetadataSourceProcessorImpl implements MetadataSourceProc if ( clazz.hasDirectAnnotationUsage( Entity.class ) ) { throw new MappingException( "Only classes (not interfaces) may be mapped as @Entity : " + clazz.getName() ); } - if ( clazz.hasDirectAnnotationUsage( MappedSuperclass.class ) ) { - throw new MappingException( "Only classes (not interfaces) may be mapped as @MappedSuperclass : " + clazz.getName() ); - } +// if ( clazz.hasDirectAnnotationUsage( MappedSuperclass.class ) ) { +// throw new MappingException( "Only classes (not interfaces) may be mapped as @MappedSuperclass : " + clazz.getName() ); +// } } if ( clazz.hasDirectAnnotationUsage( MappedSuperclass.class ) ) { if ( debug ) {