This commit is contained in:
kamhung
2015-12-03 13:21:51 +08:00
parent aa03ad970b
commit a4573d0921

View File

@@ -54,9 +54,7 @@ public final class EntityCache<T> {
this.needcopy = true;
this.reproduce = Reproduce.create(type, type, (m) -> {
try {
Transient t = type.getDeclaredField(m).getAnnotation(Transient.class);
if (t != null) return false;
return true;
return type.getDeclaredField(m).getAnnotation(Transient.class) == null;
} catch (Exception e) {
return true;
}