DATACMNS-1101 - Remove Optional from mapping/convert use except for caching of absence and computations that are used to populate caches.
This commit is contained in:
committed by
Oliver Gierke
parent
74fbe13f54
commit
6c65c02e78
@@ -108,10 +108,10 @@ public class MappingAuditableBeanWrapperFactory extends DefaultAuditableBeanWrap
|
||||
|
||||
Assert.notNull(entity, "PersistentEntity must not be null!");
|
||||
|
||||
this.createdByProperty = entity.getPersistentProperty(CreatedBy.class);
|
||||
this.createdDateProperty = entity.getPersistentProperty(CreatedDate.class);
|
||||
this.lastModifiedByProperty = entity.getPersistentProperty(LastModifiedBy.class);
|
||||
this.lastModifiedDateProperty = entity.getPersistentProperty(LastModifiedDate.class);
|
||||
this.createdByProperty = Optional.ofNullable(entity.getPersistentProperty(CreatedBy.class));
|
||||
this.createdDateProperty = Optional.ofNullable(entity.getPersistentProperty(CreatedDate.class));
|
||||
this.lastModifiedByProperty = Optional.ofNullable(entity.getPersistentProperty(LastModifiedBy.class));
|
||||
this.lastModifiedDateProperty = Optional.ofNullable(entity.getPersistentProperty(LastModifiedDate.class));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user