RsResource.java 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. package com.yihu.ehr.resource.model;
  2. import com.yihu.ehr.entity.BaseAssignedEntity;
  3. import javax.persistence.*;
  4. /**
  5. * Entity - 资源
  6. * Created by hzp on 2016/4/21.
  7. * Modify by Progr1mmer 2017/11/20
  8. */
  9. @Entity
  10. @Table(name = "rs_resource")
  11. @Access(value = AccessType.PROPERTY)
  12. public class RsResource extends BaseAssignedEntity {
  13. // 编码
  14. private String code;
  15. // 名称
  16. private String name;
  17. // 分类ID
  18. private String categoryId;
  19. // 数据接口
  20. private String rsInterface;
  21. // 授权类型 (0 开放 1 授权)
  22. private String grantType;
  23. // 描述
  24. private String description;
  25. // 资源类型
  26. private Integer dataSource;
  27. //指标视图展示类型
  28. private String echartType;
  29. //视图展示维度
  30. private String dimension;
  31. // 计量数值
  32. private String dataMeasurement;
  33. // 单位
  34. private String dataUnit;
  35. // 单位放置位置
  36. private String dataPosition;
  37. @Column(name="code",nullable = false)
  38. public String getCode() {
  39. return code;
  40. }
  41. public void setCode(String code) {
  42. this.code = code;
  43. }
  44. @Column(name="name",nullable = false)
  45. public String getName() {
  46. return name;
  47. }
  48. public void setName(String name) {
  49. this.name = name;
  50. }
  51. @Column(name="category_id",nullable=false)
  52. public String getCategoryId() {
  53. return categoryId;
  54. }
  55. public void setCategoryId(String categoryId) {
  56. this.categoryId = categoryId;
  57. }
  58. @Column(name="rs_interface")
  59. public String getRsInterface()
  60. {
  61. return rsInterface;
  62. }
  63. public void setRsInterface(String rsInterface)
  64. {
  65. this.rsInterface = rsInterface;
  66. }
  67. @Column(name="grant_type")
  68. public String getGrantType()
  69. {
  70. return grantType;
  71. }
  72. public void setGrantType(String grantType)
  73. {
  74. this.grantType = grantType;
  75. }
  76. @Column(name="description")
  77. public String getDescription() {
  78. return description;
  79. }
  80. public void setDescription(String description) {
  81. this.description = description;
  82. }
  83. @Column(name="data_source")
  84. public Integer getDataSource() {
  85. return dataSource;
  86. }
  87. public void setDataSource(Integer dataSource) {
  88. this.dataSource = dataSource;
  89. }
  90. @Column(name="echart_type")
  91. public String getEchartType() {
  92. return echartType;
  93. }
  94. public void setEchartType(String echartType) {
  95. this.echartType = echartType;
  96. }
  97. @Column(name="dimension")
  98. public String getDimension() {
  99. return dimension;
  100. }
  101. public void setDimension(String dimension) {
  102. this.dimension = dimension;
  103. }
  104. @Column(name="data_measurement")
  105. public String getDataMeasurement() {
  106. return dataMeasurement;
  107. }
  108. public void setDataMeasurement(String dataMeasurement) {
  109. this.dataMeasurement = dataMeasurement;
  110. }
  111. @Column(name="data_unit")
  112. public String getDataUnit() {
  113. return dataUnit;
  114. }
  115. public void setDataUnit(String dataUnit) {
  116. this.dataUnit = dataUnit;
  117. }
  118. @Column(name="data_position")
  119. public String getDataPosition() {
  120. return dataPosition;
  121. }
  122. public void setDataPosition(String dataPosition) {
  123. this.dataPosition = dataPosition;
  124. }
  125. }