HHH-18060 - HbmXmlTransformer
interface as MappedSuperclass
This commit is contained in:
parent
6da73869ee
commit
58d672a8a8
|
@ -234,9 +234,9 @@ public class AnnotationMetadataSourceProcessorImpl implements MetadataSourceProc
|
||||||
if ( clazz.hasDirectAnnotationUsage( Entity.class ) ) {
|
if ( clazz.hasDirectAnnotationUsage( Entity.class ) ) {
|
||||||
throw new MappingException( "Only classes (not interfaces) may be mapped as @Entity : " + clazz.getName() );
|
throw new MappingException( "Only classes (not interfaces) may be mapped as @Entity : " + clazz.getName() );
|
||||||
}
|
}
|
||||||
if ( clazz.hasDirectAnnotationUsage( MappedSuperclass.class ) ) {
|
// if ( clazz.hasDirectAnnotationUsage( MappedSuperclass.class ) ) {
|
||||||
throw new MappingException( "Only classes (not interfaces) may be mapped as @MappedSuperclass : " + clazz.getName() );
|
// throw new MappingException( "Only classes (not interfaces) may be mapped as @MappedSuperclass : " + clazz.getName() );
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
if ( clazz.hasDirectAnnotationUsage( MappedSuperclass.class ) ) {
|
if ( clazz.hasDirectAnnotationUsage( MappedSuperclass.class ) ) {
|
||||||
if ( debug ) {
|
if ( debug ) {
|
||||||
|
|
Loading…
Reference in New Issue