org.swiftboot.data.model.entity.BaseEntity Maven / Gradle / Ivy
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 {
/**
* 是否逻辑删除
*/
@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 isDelete() {
return isDelete;
}
public void setDelete(Boolean delete) {
isDelete = delete;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy