package com.fzzy.s.domain; import com.bstek.dorado.annotation.PropertyDef; import lombok.Data; import javax.persistence.*; import java.io.Serializable; import java.util.Date; /** * 项目管理 * */ @Data @Entity @Table(name = "B_PROJECT") public class Project implements Serializable { private static final long serialVersionUID = 1L; @Id @PropertyDef(label = "系统ID") @Column(name = "ID_", length = 40) private String id; @PropertyDef(label = "组织编号") @Column(name = "COMPANY_ID_", length = 10) private String companyId; @PropertyDef(label = "项目类型", description = "类型,如动环,粮库") @Column(name = "TYPE_", length = 50) private String type; @PropertyDef(label = "项目名称") @Column(name = "NAME_", length = 50) private String name; @PropertyDef(label = "项目部署类型", description = "本地,云端") @Column(name = "DEPLOYMENT_TYPE_", length = 30) private String deploymentType; @PropertyDef(label = "注册时间") @Column(name = "REG_TIME_") private Date regTime; @PropertyDef(label = "授权截止时间") @Column(name = "AUTH_TIME_") private Date authTime; @PropertyDef(label = "授权KEY",description = "如cpu序列号,主板号") @Column(name = "LICENSE_CONTENT_", length = 300) private String licenseContent; @PropertyDef(label = "组织名称") @Transient private String companyName; public String getCompanyName(){ return companyId; } }