xyz.erupt.upms.model.EruptUserVo 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.model;
import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.EruptI18n;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.annotation.sub_field.sub_edit.Search;
import xyz.erupt.jpa.model.BaseModel;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @author YuePeng
* date 2018-11-22.
*/
@Entity
@Table(name = "e_upms_user")
@Erupt(
name = "简单用户对象"
)
@EruptI18n
@Getter
@Setter
public class EruptUserVo extends BaseModel {
@EruptField(
views = @View(title = "姓名", sortable = true),
edit = @Edit(title = "姓名", notNull = true, search = @Search(vague = true))
)
private String name;
public EruptUserVo() {
}
public EruptUserVo(Long id) {
this.setId(id);
}
}