This commit is contained in:
Redkale
2016-08-31 19:10:20 +08:00
parent 48a4c6d53c
commit 07253b1f17

View File

@@ -71,8 +71,7 @@ public final class EntityCache<T> {
java.lang.reflect.Field field = type.getDeclaredField(m); java.lang.reflect.Field field = type.getDeclaredField(m);
if (field.getAnnotation(Transient.class) != null) return false; if (field.getAnnotation(Transient.class) != null) return false;
Column column = field.getAnnotation(Column.class); Column column = field.getAnnotation(Column.class);
if (column != null && !column.updatable()) return false; return (column == null || column.updatable());
return true;
} catch (Exception e) { } catch (Exception e) {
return true; return true;
} }