AppApiParameter.java 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. package com.yihu.ehr.basic.apps.model;
  2. import javax.persistence.*;
  3. /**
  4. * apps_api_parameter对象。
  5. *
  6. * @author linzhuo
  7. * @version 1.0
  8. * @created 2016年7月7日17:45:30
  9. */
  10. @Entity
  11. @Table(name = "apps_api_parameter")
  12. public class AppApiParameter {
  13. private int id;
  14. private String name; //参数名
  15. private String type; //参数类型
  16. private String dataType; //数据类型
  17. private String description; //说明
  18. private String required; //是否必须
  19. private int appApiId; //apiId
  20. private String memo; //备注
  21. private String defaultValue; //默认值
  22. private Integer maxLength; //最大长度
  23. private Integer sort; //序号
  24. @Id
  25. @GeneratedValue(strategy = GenerationType.AUTO)
  26. @Column(name = "id", unique = true, nullable = false)
  27. public int getId() {
  28. return id;
  29. }
  30. public void setId(int id) {
  31. this.id = id;
  32. }
  33. @Column(name = "name", nullable = true)
  34. public String getName() {
  35. return name;
  36. }
  37. public void setName(String name) {
  38. this.name = name;
  39. }
  40. @Column(name = "description", nullable = true)
  41. public String getDescription() {
  42. return description;
  43. }
  44. public void setDescription(String description) {
  45. this.description = description;
  46. }
  47. @Column(name = "type", nullable = true)
  48. public String getType() {
  49. return type;
  50. }
  51. public void setType(String type) {
  52. this.type = type;
  53. }
  54. @Column(name = "data_type", nullable = true)
  55. public String getDataType() {
  56. return dataType;
  57. }
  58. public void setDataType(String dataType) {
  59. this.dataType = dataType;
  60. }
  61. @Column(name = "required", nullable = true)
  62. public String getRequired() {
  63. return required;
  64. }
  65. public void setRequired(String required) {
  66. this.required = required;
  67. }
  68. @Column(name = "app_api_id", nullable = true)
  69. public int getAppApiId() {
  70. return appApiId;
  71. }
  72. public void setAppApiId(int appApiId) {
  73. this.appApiId = appApiId;
  74. }
  75. @Column(name = "memo", nullable = true)
  76. public String getMemo() {
  77. return memo;
  78. }
  79. public void setMemo(String memo) {
  80. this.memo = memo;
  81. }
  82. @Column(name = "default_value", nullable = true)
  83. public String getDefaultValue() {
  84. return defaultValue;
  85. }
  86. public void setDefaultValue(String defaultValue) {
  87. this.defaultValue = defaultValue;
  88. }
  89. @Column(name = "max_length", nullable = true)
  90. public Integer getMaxLength() {
  91. return maxLength;
  92. }
  93. public void setMaxLength(Integer maxLength) {
  94. this.maxLength = maxLength;
  95. }
  96. @Column(name = "sort", nullable = false)
  97. public Integer getSort() {
  98. return sort;
  99. }
  100. public void setSort(Integer sort) {
  101. this.sort = sort;
  102. }
  103. }