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

org.swiftboot.data.model.entity.BaseEntity 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;

/**
 *
 * @author swiftech
 * @deprecated
 **/
@MappedSuperclass
public abstract class BaseEntity extends BaseLongTimeEntity implements LogicalDeletePersistable{

    /**
     * 是否逻辑删除
     */
    @PropertyDescription(value = "Is deleted", example = "false")
    @Column(name = "IS_DELETE", columnDefinition = "BIT DEFAULT FALSE COMMENT 'Is deleted'")
    private Boolean isDelete = Boolean.FALSE;

    public BaseEntity() {
    }

    public BaseEntity(String id) {
        super(id);
    }

    public Boolean getIsDelete() {
        return isDelete;
    }

    @Override
    public void setIsDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy