/** * Creates a new {@link AbstractEntityInformation} from the given domain class. * * @param domainClass must not be {@literal null}. */ protected MybatisMetamodelEntityInformation(PersistentEntity<T, ?> persistentEntity, AuditorAware<?> auditorAware, AuditDateAware<?> auditDateAware, Class<T> domainClass) { super(persistentEntity, auditorAware, auditDateAware, domainClass); createdDateProperty = persistentEntity.getPersistentProperty(CreatedDate.class); lastModifiedDateProperty = persistentEntity.getPersistentProperty(LastModifiedDate.class); createdByProperty = persistentEntity.getPersistentProperty(CreatedBy.class); lastModifiedByProperty = persistentEntity.getPersistentProperty(LastModifiedBy.class); }
@CreatedBy public void setCreatedBy(final String createdBy) { if (isController()) { this.createdBy = "CONTROLLER_PLUG_AND_PLAY"; return; } this.createdBy = createdBy; }
@CreatedBy @Column(name = "CREATED_BY", nullable = true) public String getCreatedBy() { return createdBy; }