mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-10973 - Fix 'class is frozen' when enhancing bidirectional relationships
This commit is contained in:
parent
987487e106
commit
a9318ce656
@ -310,7 +310,7 @@ private static String inferTypeName(CtClass ctClass, String attributeName ) {
|
||||
|
||||
private static String inferFieldTypeName(CtField field) {
|
||||
try {
|
||||
if ( field.getFieldInfo().getAttribute( SignatureAttribute.tag ) == null ){
|
||||
if ( field.getFieldInfo2().getAttribute( SignatureAttribute.tag ) == null ) {
|
||||
return field.getType().getName();
|
||||
}
|
||||
return inferGenericTypeName(
|
||||
@ -328,7 +328,7 @@ private static String inferFieldTypeName(CtField field) {
|
||||
|
||||
private static String inferMethodTypeName(CtMethod method) {
|
||||
try {
|
||||
if ( method.getMethodInfo().getAttribute( SignatureAttribute.tag ) == null ){
|
||||
if ( method.getMethodInfo2().getAttribute( SignatureAttribute.tag ) == null ) {
|
||||
return method.getReturnType().getName();
|
||||
}
|
||||
return inferGenericTypeName(
|
||||
|
Loading…
x
Reference in New Issue
Block a user