
org.swiftboot.data.model.entity.BaseLongTimeEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swiftboot-data Show documentation
Show all versions of swiftboot-data Show documentation
Data access component based on Spring-Data-JPA
package org.swiftboot.data.model.entity;
import org.swiftboot.data.annotation.PropertyDescription;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
/**
* 基于 {@coee java.lang.Long} 的实体类基类。
*
* @author swiftech
* @since 2.0.0
*/
@MappedSuperclass
public abstract class BaseLongTimeEntity extends BaseIdEntity implements TimePersistable {
/**
* 创建时间
*/
@PropertyDescription(value = "Creation time", example = "1545355038524")
@Column(name = "CREATE_TIME", columnDefinition = "BIGINT COMMENT 'Creation time'")
private Long createTime;
/**
* 修改时间
*/
@PropertyDescription(value = "Updating time", example = "1545355038524")
@Column(name = "UPDATE_TIME", columnDefinition = "BIGINT COMMENT 'Updating time'")
private Long updateTime;
public BaseLongTimeEntity() {
}
public BaseLongTimeEntity(String id) {
super(id);
}
@Override
public Long getCreateTime() {
return createTime;
}
@Override
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
@Override
public Long getUpdateTime() {
return updateTime;
}
@Override
public void setUpdateTime(Long updateTime) {
this.updateTime = updateTime;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy