mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 11:48:18 +00:00
HHH-18060 - HbmXmlTransformer
interface as MappedSuperclass
This commit is contained in:
parent
6da73869ee
commit
58d672a8a8
@ -234,9 +234,9 @@ private void insertMappedSuperclasses(LinkedHashSet<ClassDetails> original, Link
|
||||
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 ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user