This commit is contained in:
@@ -312,10 +312,14 @@ public abstract class ConvertFactory<R extends Reader, W extends Writer> {
|
|||||||
final Method method = (Method) element;
|
final Method method = (Method) element;
|
||||||
fieldName = readGetSetFieldName(method);
|
fieldName = readGetSetFieldName(method);
|
||||||
if (fieldName != null) {
|
if (fieldName != null) {
|
||||||
try {
|
Class mclz = method.getDeclaringClass();
|
||||||
ccs = method.getDeclaringClass().getDeclaredField(fieldName).getAnnotationsByType(ConvertColumn.class);
|
do {
|
||||||
} catch (Exception e) { //说明没有该字段,忽略异常
|
try {
|
||||||
}
|
ccs = mclz.getDeclaredField(fieldName).getAnnotationsByType(ConvertColumn.class);
|
||||||
|
break;
|
||||||
|
} catch (Exception e) { //说明没有该字段,忽略异常
|
||||||
|
}
|
||||||
|
} while (mclz != Object.class && (mclz = mclz.getSuperclass()) != Object.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (onlyColumns != null && fieldName == null) {
|
if (onlyColumns != null && fieldName == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user