HHH-10973 - Fix 'class is frozen' when enhancing bidirectional relationships

(cherry picked from commit a9318ce656)
This commit is contained in:
barreiro 2016-07-20 18:35:55 +01:00 committed by Gail Badner
parent 5192eb71f5
commit d66c213b61
1 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ public class PersistentAttributesHelper {
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 @@ public class PersistentAttributesHelper {
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(