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

项目:sucok-framework    文件:FormUtils.java   
private static List<Field> getEntityCreateDate(Class<?> entityClass) {
    List<Field> fieldList = new ArrayList<>(1);
    for (Field field : entityClass.getDeclaredFields()) {
        if (field.isAnnotationPresent(CreatedDate.class)) {
            fieldList.add(field);
        }
    }
    return fieldList;
}
项目: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);
}
项目:spring-data-mybatis    文件:MybatisMetamodelEntityInformation.java   
@Override
public void setCreatedDate(T entity) {
  if (null == createdDateProperty) {
    return;
  }
  setAuditDate(createdDateProperty, entity, CreatedDate.class);
}
项目:nixmash-blog    文件:Post.java   
@Type(type = "org.jadira.usertype.dateandtime.threeten.PersistentLocalDateTime")
@CreatedDate
public ZonedDateTime getPostDate() {
    return postDate;
}
项目:pungwecms    文件:EntityInstanceImpl.java   
@Override
@Column(name = "date_created")
@CreatedDate
public Date getDateCreated() {
    return dateCreated != null ? (Date)dateCreated : null;
}
项目:hawkbit    文件:AbstractJpaBaseEntity.java   
@CreatedDate
public void setCreatedAt(final Long createdAt) {
    this.createdAt = createdAt;
}
项目:hotel_shop    文件:SObject.java   
/**
 * Gets the createon.
 *
 * @return the createon
 */
@CreatedDate
@Temporal(TemporalType.TIMESTAMP)
public Date getCreateon() {
    return createon;
}
项目:appverse-server    文件:AuditingAbstractIntegrationBean.java   
@CreatedDate
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATED", nullable = true)
public Date getCreated() {
    return created;
}