From 58d672a8a8ca788aeff4ad713c128cb0bea56e40 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 14 Jun 2024 03:25:47 -0500 Subject: [PATCH] HHH-18060 - HbmXmlTransformer interface as MappedSuperclass --- .../annotations/AnnotationMetadataSourceProcessorImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) {