xyz.erupt.upms.helper.HyperModelVo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of erupt-upms Show documentation
Show all versions of erupt-upms Show documentation
User Permissions Management
The newest version!
package xyz.erupt.upms.helper;
import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.config.EruptSmartSkipSerialize;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.Readonly;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.DateType;
import xyz.erupt.upms.model.EruptUserVo;
import xyz.erupt.upms.model.base.HyperModel;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;
import java.util.Date;
/**
* @author YuePeng
* date 2018-10-11.
*/
@Getter
@Setter
@MappedSuperclass
public class HyperModelVo extends HyperModel {
@Transient
@EruptField(
edit = @Edit(title = "数据审计", type = EditType.DIVIDE)
)
@EruptSmartSkipSerialize
private String divide;
@ManyToOne
@EruptField(
views = @View(title = "创建人", width = "100px", column = "name"),
edit = @Edit(title = "创建人", readonly = @Readonly, type = EditType.REFERENCE_TABLE)
)
@EruptSmartSkipSerialize
private EruptUserVo createUser;
@EruptField(
views = @View(title = "创建时间", sortable = true),
edit = @Edit(title = "创建时间", readonly = @Readonly, dateType = @DateType(type = DateType.Type.DATE_TIME))
)
@EruptSmartSkipSerialize
private Date createTime;
@ManyToOne
@EruptField(
views = @View(title = "更新人", width = "100px", column = "name"),
edit = @Edit(title = "更新人", readonly = @Readonly, type = EditType.REFERENCE_TABLE)
)
@EruptSmartSkipSerialize
private EruptUserVo updateUser;
@EruptField(
views = @View(title = "更新时间", sortable = true),
edit = @Edit(title = "更新时间", readonly = @Readonly, dateType = @DateType(type = DateType.Type.DATE_TIME))
)
@EruptSmartSkipSerialize
private Date updateTime;
}