Java 类org.springframework.data.annotation.CreatedBy 实例源码

项目:spring-data-mybatis    文件:MybatisMetamodelEntityInformation.java   
/**
 * 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);
}
项目:hawkbit    文件:AbstractJpaBaseEntity.java   
@CreatedBy
public void setCreatedBy(final String createdBy) {
    if (isController()) {
        this.createdBy = "CONTROLLER_PLUG_AND_PLAY";
        return;
    }

    this.createdBy = createdBy;
}
项目:appverse-server    文件:AuditingAbstractIntegrationBean.java   
@CreatedBy
@Column(name = "CREATED_BY", nullable = true)
public String getCreatedBy() {
    return createdBy;
}