123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- package com.yihu.ehr.resource.model;
- import com.yihu.ehr.entity.BaseAssignedEntity;
- import javax.persistence.*;
- /**
- * Entity - 资源
- * Created by hzp on 2016/4/21.
- * Modify by Progr1mmer 2017/11/20
- */
- @Entity
- @Table(name = "rs_resource")
- @Access(value = AccessType.PROPERTY)
- public class RsResource extends BaseAssignedEntity {
- // 编码
- private String code;
- // 名称
- private String name;
- // 分类ID
- private String categoryId;
- // 数据接口
- private String rsInterface;
- // 授权类型 (0 开放 1 授权)
- private String grantType;
- // 描述
- private String description;
- // 资源类型
- private Integer dataSource;
- //指标视图展示类型
- private String echartType;
- //视图展示维度
- private String dimension;
- // 计量数值
- private String dataMeasurement;
- // 单位
- private String dataUnit;
- // 单位放置位置
- private String dataPosition;
- @Column(name="code",nullable = false)
- public String getCode() {
- return code;
- }
- public void setCode(String code) {
- this.code = code;
- }
- @Column(name="name",nullable = false)
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- @Column(name="category_id",nullable=false)
- public String getCategoryId() {
- return categoryId;
- }
- public void setCategoryId(String categoryId) {
- this.categoryId = categoryId;
- }
- @Column(name="rs_interface")
- public String getRsInterface()
- {
- return rsInterface;
- }
- public void setRsInterface(String rsInterface)
- {
- this.rsInterface = rsInterface;
- }
- @Column(name="grant_type")
- public String getGrantType()
- {
- return grantType;
- }
- public void setGrantType(String grantType)
- {
- this.grantType = grantType;
- }
- @Column(name="description")
- public String getDescription() {
- return description;
- }
- public void setDescription(String description) {
- this.description = description;
- }
- @Column(name="data_source")
- public Integer getDataSource() {
- return dataSource;
- }
- public void setDataSource(Integer dataSource) {
- this.dataSource = dataSource;
- }
- @Column(name="echart_type")
- public String getEchartType() {
- return echartType;
- }
- public void setEchartType(String echartType) {
- this.echartType = echartType;
- }
- @Column(name="dimension")
- public String getDimension() {
- return dimension;
- }
- public void setDimension(String dimension) {
- this.dimension = dimension;
- }
- @Column(name="data_measurement")
- public String getDataMeasurement() {
- return dataMeasurement;
- }
- public void setDataMeasurement(String dataMeasurement) {
- this.dataMeasurement = dataMeasurement;
- }
- @Column(name="data_unit")
- public String getDataUnit() {
- return dataUnit;
- }
- public void setDataUnit(String dataUnit) {
- this.dataUnit = dataUnit;
- }
- @Column(name="data_position")
- public String getDataPosition() {
- return dataPosition;
- }
- public void setDataPosition(String dataPosition) {
- this.dataPosition = dataPosition;
- }
- }
|