[Java] 字典表范例 →→→→→进入此内容的聊天室

来自 , 2020-03-15, 写在 Java, 查看 107 次.
URL http://www.code666.cn/view/4d5b9953
  1. package com.founder.znzhdd.model;
  2.  
  3. import java.io.Serializable;
  4.  
  5. import javax.persistence.Column;
  6. import javax.persistence.Entity;
  7. import javax.persistence.GeneratedValue;
  8. import javax.persistence.Id;
  9. import javax.persistence.Table;
  10.  
  11. import org.hibernate.annotations.GenericGenerator;
  12.  
  13. /**
  14.  * 公共代码维护即字典管理
  15.  *
  16.  * @author zbc
  17.  * @version 1.0
  18.  */
  19. @SuppressWarnings("serial")
  20. @Table(name = "T_ICS_DICTIONARY" )
  21. public class Dictionary implements Serializable {
  22.  
  23.         /**
  24.          * 主键
  25.          */
  26.         private String guid;
  27.         /**
  28.          * 名称
  29.          */
  30.         private String name;
  31.         private String parentId;
  32.         private String type;
  33.         private String code;
  34.         private String isNode;
  35.         private String desc;
  36.         @Column(name = "CODE", length = 10)
  37.         public String getCode() {
  38.                 return code;
  39.         }
  40.  
  41.         @Column(name = "DESCS", length = 50)
  42.         public String getDesc() {
  43.                 return desc;
  44.         }
  45.  
  46.         @GenericGenerator(name = "generator", strategy = "uuid.hex")
  47.         @Id
  48.         @GeneratedValue(generator = "generator")
  49.         @Column(name = "GUID", unique = true, nullable = false, length = 40)
  50.         public String getGuid() {
  51.                 return guid;
  52.         }
  53.  
  54.         @Column(name = "ISNODE", length = 40)
  55.         public String getIsNode() {
  56.                 return isNode;
  57.         }
  58.  
  59.         @Column(name = "NAME", length = 50)
  60.         public String getName() {
  61.                 return name;
  62.         }
  63.  
  64.         @Column(name = "PARENT_ID", length = 40)
  65.         public String getParentId() {
  66.                 return parentId;
  67.         }
  68.  
  69.         @Column(name = "TYPE", length = 100)
  70.         public String getType() {
  71.                 return type;
  72.         }
  73.  
  74.         public void setCode(String code) {
  75.                 this.code = code;
  76.         }
  77.  
  78.         public void setDesc(String desc) {
  79.                 this.desc = desc;
  80.         }
  81.  
  82.         public void setGuid(String guid) {
  83.                 this.guid = guid;
  84.         }
  85.  
  86.         public void setIsNode(String isNode) {
  87.                 this.isNode = isNode;
  88.         }
  89.  
  90.         public void setName(String name) {
  91.                 this.name = name;
  92.         }
  93.  
  94.         public void setParentId(String parentId) {
  95.                 this.parentId = parentId;
  96.         }
  97.  
  98.         public void setType(String type) {
  99.                 this.type = type;
  100.         }
  101.  
  102. }
  103.  

回复 "字典表范例"

这儿你可以回复上面这条便签

captcha