SystemDict.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package com.yihu.figure.model.dict;
  2. import javax.persistence.*;
  3. /**
  4. * SystemDict entity. @author MyEclipse Persistence Tools
  5. */
  6. @Entity
  7. @Table(name = "system_dict")
  8. public class SystemDict implements java.io.Serializable {
  9. // Fields
  10. private String dictName;
  11. private String code;
  12. private String value;
  13. private String pyCode;
  14. private Integer sort;
  15. private Integer id;
  16. // Constructors
  17. /** default constructor */
  18. public SystemDict() {
  19. }
  20. /** minimal constructor */
  21. public SystemDict(String dictName, String code, String value) {
  22. this.dictName = dictName;
  23. this.code = code;
  24. this.value = value;
  25. }
  26. // Property accessors
  27. @Id
  28. @GeneratedValue(strategy = GenerationType.IDENTITY)
  29. @Column(name = "id", unique = true, nullable = false)
  30. public Integer getId() {
  31. return id;
  32. }
  33. public void setId(Integer id) {
  34. this.id = id;
  35. }
  36. /** full constructor */
  37. public SystemDict(String dictName, String code, String value,
  38. String pyCode, Integer sort) {
  39. this.dictName = dictName;
  40. this.code = code;
  41. this.value = value;
  42. this.pyCode = pyCode;
  43. this.sort = sort;
  44. }
  45. @Column(name = "dict_name", nullable = false, length = 50)
  46. public String getDictName() {
  47. return this.dictName;
  48. }
  49. public void setDictName(String dictName) {
  50. this.dictName = dictName;
  51. }
  52. @Column(name = "code", nullable = false, length = 50)
  53. public String getCode() {
  54. return this.code;
  55. }
  56. public void setCode(String code) {
  57. this.code = code;
  58. }
  59. @Column(name = "value", nullable = false, length = 50)
  60. public String getValue() {
  61. return this.value;
  62. }
  63. public void setValue(String value) {
  64. this.value = value;
  65. }
  66. @Column(name = "py_code", length = 50)
  67. public String getPyCode() {
  68. return this.pyCode;
  69. }
  70. public void setPyCode(String pyCode) {
  71. this.pyCode = pyCode;
  72. }
  73. @Column(name = "sort")
  74. public Integer getSort() {
  75. return this.sort;
  76. }
  77. public void setSort(Integer sort) {
  78. this.sort = sort;
  79. }
  80. }