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