HHH-18060 - HbmXmlTransformer

interface as MappedSuperclass
This commit is contained in:
Steve Ebersole 2024-06-14 03:25:47 -05:00
parent 6da73869ee
commit 58d672a8a8
1 changed files with 3 additions and 3 deletions

View File

@ -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 ) {