All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swiftboot.data.model.entity.BaseLongTimeEntity Maven / Gradle / Ivy

There is a newer version: 2.4.8
Show newest version
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