Polishing.

See #1254
This commit is contained in:
Jens Schauder
2022-06-01 11:38:49 +02:00
parent a5238fac85
commit 63b0f5a01a

View File

@@ -124,7 +124,9 @@ public class JdbcAggregateTemplate implements JdbcAggregateOperations {
}
/**
* @param entityCallbacks
* Sets the callbacks to be invoked on life cycle events.
*
* @param entityCallbacks must not be {@literal null}.
* @since 1.1
*/
public void setEntityCallbacks(EntityCallbacks entityCallbacks) {
@@ -197,10 +199,10 @@ public class JdbcAggregateTemplate implements JdbcAggregateOperations {
Assert.notNull(domainType, "Domain type must not be null!");
T entity = accessStrategy.findById(id, domainType);
if (entity != null) {
return triggerAfterConvert(entity);
if (entity == null) {
return null;
}
return entity;
return triggerAfterConvert(entity);
}
@Override