DATACMNS-1101 - Iterate with BasicPersistentEntity.doWithProperties(…) over precomputed properties.

This commit is contained in:
Mark Paluch
2017-06-26 14:27:18 +02:00
committed by Oliver Gierke
parent c3c5e7e331
commit 4aa083377b

View File

@@ -324,7 +324,11 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement
Assert.notNull(handler, "PropertyHandler must not be null!");
getPersistentProperties().forEach(handler::doWithPersistentProperty);
for (P property : properties) {
if (!property.isTransient() && !property.isAssociation()) {
handler.doWithPersistentProperty(property);
}
}
}
/*
@@ -336,7 +340,11 @@ public class BasicPersistentEntity<T, P extends PersistentProperty<P>> implement
Assert.notNull(handler, "Handler must not be null!");
getPersistentProperties().forEach(handler::doWithPersistentProperty);
for (PersistentProperty<?> property : properties) {
if (!property.isTransient() && !property.isAssociation()) {
handler.doWithPersistentProperty(property);
}
}
}
/*