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:
Mark Paluch
2017-06-27 15:46:05 +02:00
committed by Oliver Gierke
parent 74fbe13f54
commit 6c65c02e78
56 changed files with 848 additions and 747 deletions

View File

@@ -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));
}
/**