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

项目: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 setLastModifiedDate(T entity) {
  if (null == lastModifiedDateProperty) {
    return;
  }
  setAuditDate(lastModifiedDateProperty, entity, LastModifiedDate.class);

}
项目:hawkbit    文件:AbstractJpaBaseEntity.java   
@LastModifiedDate
public void setLastModifiedAt(final Long lastModifiedAt) {

    if (isController()) {
        return;
    }

    this.lastModifiedAt = lastModifiedAt;
}
项目:nixmash-blog    文件:Post.java   
@Type(type = "org.jadira.usertype.dateandtime.threeten.PersistentLocalDateTime")
@LastModifiedDate
public ZonedDateTime getPostModified() {
    return postModified;
}
项目:mobclip    文件:Property.java   
@LastModifiedDate
public void atualizaData() {
    statusDate = new Date();
}
项目:pungwecms    文件:EntityInstanceImpl.java   
@Override
@Column(name = "date_modified")
@LastModifiedDate
public Date getDateModified() {
    return dateModified != null ? (Date)dateModified.clone() : null;
}
项目:hotel_shop    文件:SObject.java   
/**
 * Gets the modifyon.
 *
 * @return the modifyon
 */
@LastModifiedDate
@Temporal(TemporalType.TIMESTAMP)
public Date getModifyon() {
    return modifyon;
}
项目:appverse-server    文件:AuditingAbstractIntegrationBean.java   
@LastModifiedDate
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "UPDATED", nullable = true)
public Date getUpdated() {
    return updated;
}