mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-28 06:49:09 +00:00
HHH-10981 - No need to add template methods for inherited persistent fields
This commit is contained in:
parent
e2641afb12
commit
20c2037529
@ -225,7 +225,11 @@ private List<CtField> collectCollectionFields(CtClass managedCtClass) {
|
||||
}
|
||||
|
||||
// HHH-10646 Add fields inherited from @MappedSuperclass
|
||||
collectionList.addAll( collectInheritCollectionFields( managedCtClass ) );
|
||||
// HHH-10981 There is no need to do it for @MappedSuperclass
|
||||
if ( !enhancementContext.isMappedSuperclassClass( managedCtClass ) ) {
|
||||
collectionList.addAll( collectInheritCollectionFields( managedCtClass ) );
|
||||
}
|
||||
|
||||
return collectionList;
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,10 @@ private CtField[] collectPersistentFields(CtClass managedCtClass) {
|
||||
}
|
||||
}
|
||||
// HHH-10646 Add fields inherited from @MappedSuperclass
|
||||
persistentFieldList.addAll( collectInheritPersistentFields( managedCtClass ) );
|
||||
// HHH-10981 There is no need to do it for @MappedSuperclass
|
||||
if ( !enhancementContext.isMappedSuperclassClass( managedCtClass ) ) {
|
||||
persistentFieldList.addAll( collectInheritPersistentFields( managedCtClass ) );
|
||||
}
|
||||
|
||||
CtField[] orderedFields = enhancementContext.order( persistentFieldList.toArray( new CtField[0] ) );
|
||||
log.debugf( "Persistent fields for entity %s: %s", managedCtClass.getName(), Arrays.toString( orderedFields ));
|
||||
|
Loading…
x
Reference in New Issue
Block a user