Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ecdef36

Browse files
committed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/codingapi/simplemybatis/parser/TableParser.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public void parser(Object obj) throws IllegalAccessException, InvocationTargetEx
5050
private void loadColumnNames(Object obj) throws IllegalAccessException, InvocationTargetException {
5151
Field[] fields = clazz.getDeclaredFields();
5252
for (Field field : fields) {
53+
if(field.isSynthetic()){
54+
continue;
55+
}
5356
Transient transientField = field.getAnnotation(Transient.class);
5457
if (transientField != null) {
5558
continue;

0 commit comments

Comments
 (0)