| | |
| | | package com.yeshi.fanli.entity.system;
|
| | |
|
| | | import java.io.Serializable;
|
| | |
|
| | | import javax.persistence.Column;
|
| | | import javax.persistence.Entity;
|
| | | import javax.persistence.FetchType;
|
| | | import javax.persistence.GeneratedValue;
|
| | | import javax.persistence.GenerationType;
|
| | | import javax.persistence.Id;
|
| | | import javax.persistence.JoinColumn;
|
| | | import javax.persistence.ManyToOne;
|
| | | import javax.persistence.Table;
|
| | | import javax.persistence.UniqueConstraint;
|
| | |
|
| | | import com.google.gson.annotations.Expose;
|
| | |
|
| | | /**
|
| | | package com.yeshi.fanli.entity.system; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import org.yeshi.utils.generater.mybatis.Column; |
| | | import org.yeshi.utils.generater.mybatis.Table; |
| | | |
| | | import com.google.gson.annotations.Expose; |
| | | |
| | | /** |
| | | * �?��返回给客户端的参�? |
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Entity
|
| | | @Table(name = "yeshi_ec_system_clientparams",uniqueConstraints={@UniqueConstraint(columnNames={"`name`","`key`", "systemid"})})
|
| | | public class SystemClientParams implements Serializable{
|
| | | /**
|
| | | * |
| | | */
|
| | | private static final long serialVersionUID = 1L;
|
| | | |
| | | |
| | | @Id
|
| | | @GeneratedValue(strategy = GenerationType.AUTO)
|
| | | @Column(name = "id")
|
| | | private long id;
|
| | | @ManyToOne(fetch = FetchType.EAGER)
|
| | | @JoinColumn(name = "systemid")
|
| | | private System system;
|
| | | @Column(name = "`key`", length = 50)
|
| | | @Expose
|
| | | private String key;
|
| | | @Column(name = "`value`", length = 1024)
|
| | | @Expose
|
| | | private String value;
|
| | | @Column(name = "`name`", length = 50)
|
| | | @Expose
|
| | | private String name;
|
| | | @Expose
|
| | | private long updatetime;
|
| | |
|
| | | public SystemClientParams() {
|
| | | // TODO Auto-generated constructor stub
|
| | | }
|
| | | |
| | | public SystemClientParams(System system, String key, String value) {
|
| | | super();
|
| | | this.system = system;
|
| | | this.key = key;
|
| | | this.value = value;
|
| | | }
|
| | |
|
| | | public long getId() {
|
| | | return id;
|
| | | }
|
| | |
|
| | | public void setId(long id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | | public System getSystem() {
|
| | | return system;
|
| | | }
|
| | |
|
| | | public void setSystem(System system) {
|
| | | this.system = system;
|
| | | }
|
| | |
|
| | | public String getKey() {
|
| | | return key;
|
| | | }
|
| | |
|
| | | public void setKey(String key) {
|
| | | this.key = key;
|
| | | }
|
| | |
|
| | | public String getValue() {
|
| | | return value;
|
| | | }
|
| | |
|
| | | public void setValue(String value) {
|
| | | this.value = value;
|
| | | }
|
| | |
|
| | | public String getName() {
|
| | | return name;
|
| | | }
|
| | |
|
| | | public void setName(String name) {
|
| | | this.name = name;
|
| | | }
|
| | |
|
| | | public long getUpdatetime() {
|
| | | return updatetime;
|
| | | }
|
| | |
|
| | | public void setUpdatetime(long updatetime) {
|
| | | this.updatetime = updatetime;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public int hashCode() {
|
| | | final int prime = 31;
|
| | | int result = 1;
|
| | | result = prime * result + ((key == null) ? 0 : key.hashCode());
|
| | | result = prime * result + ((name == null) ? 0 : name.hashCode());
|
| | | result = prime * result + ((value == null) ? 0 : value.hashCode());
|
| | | return result;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public boolean equals(Object obj) {
|
| | | if (this == obj)
|
| | | return true;
|
| | | if (obj == null)
|
| | | return false;
|
| | | if (getClass() != obj.getClass())
|
| | | return false;
|
| | | SystemClientParams other = (SystemClientParams) obj;
|
| | | if (key == null) {
|
| | | if (other.key != null)
|
| | | return false;
|
| | | } else if (!key.equals(other.key))
|
| | | return false;
|
| | | if (name == null) {
|
| | | if (other.name != null)
|
| | | return false;
|
| | | } else if (!name.equals(other.name))
|
| | | return false;
|
| | | if (value == null) {
|
| | | if (other.value != null)
|
| | | return false;
|
| | | } else if (!value.equals(other.value))
|
| | | return false;
|
| | | return true;
|
| | | }
|
| | |
|
| | | }
|
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | @Table("yeshi_ec_system_clientparams") |
| | | public class SystemClientParams implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @Column(name = "id") |
| | | private Long id; |
| | | |
| | | @Column(name = "systemid") |
| | | private BusinessSystem system; |
| | | |
| | | @Column(name = "key") |
| | | @Expose |
| | | private String key; |
| | | |
| | | @Expose |
| | | @Column(name = "value") |
| | | private String value; |
| | | |
| | | // @Expose |
| | | @Column(name = "name") |
| | | private String name; |
| | | |
| | | // @Expose |
| | | @Column(name = "updatetime") |
| | | private Long updatetime; |
| | | |
| | | @Column(name = "min_version") |
| | | private Integer minVersion; |
| | | |
| | | private String version; |
| | | |
| | | public String getVersion() { |
| | | return version; |
| | | } |
| | | |
| | | public void setVersion(String version) { |
| | | this.version = version; |
| | | } |
| | | |
| | | public Integer getMinVersion() { |
| | | return minVersion; |
| | | } |
| | | |
| | | public void setMinVersion(Integer minVersion) { |
| | | this.minVersion = minVersion; |
| | | } |
| | | |
| | | public SystemClientParams() { |
| | | } |
| | | |
| | | public SystemClientParams(BusinessSystem system, String key, String value) { |
| | | super(); |
| | | this.system = system; |
| | | this.key = key; |
| | | this.value = value; |
| | | } |
| | | |
| | | public Long getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public BusinessSystem getSystem() { |
| | | return system; |
| | | } |
| | | |
| | | public void setSystem(BusinessSystem system) { |
| | | this.system = system; |
| | | } |
| | | |
| | | public String getKey() { |
| | | return key; |
| | | } |
| | | |
| | | public void setKey(String key) { |
| | | this.key = key; |
| | | } |
| | | |
| | | public String getValue() { |
| | | return value; |
| | | } |
| | | |
| | | public void setValue(String value) { |
| | | this.value = value; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public Long getUpdatetime() { |
| | | return updatetime; |
| | | } |
| | | |
| | | public void setUpdatetime(Long updatetime) { |
| | | this.updatetime = updatetime; |
| | | } |
| | | } |