| | |
| | |
|
| | | 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 org.yeshi.utils.mybatis.Column;
|
| | | import org.yeshi.utils.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{
|
| | | @Table("yeshi_ec_system_clientparams")
|
| | | 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 Long id;
|
| | |
|
| | | @Column(name = "systemid")
|
| | | private BusinessSystem system;
|
| | | @Column(name = "`key`", length = 50)
|
| | |
|
| | | @Column(name = "key")
|
| | | @Expose
|
| | | private String key;
|
| | | @Column(name = "`value`", length = 1024)
|
| | |
|
| | | @Expose
|
| | | @Column(name = "value")
|
| | | private String value;
|
| | | @Column(name = "`name`", length = 50)
|
| | |
|
| | | @Expose
|
| | | @Column(name = "name")
|
| | | private String name;
|
| | |
|
| | | @Expose
|
| | | private long updatetime;
|
| | | @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() {
|
| | | // TODO Auto-generated constructor stub
|
| | | }
|
| | | |
| | |
|
| | | public SystemClientParams(BusinessSystem system, String key, String value) {
|
| | | super();
|
| | | this.system = system;
|
| | |
| | | this.value = value;
|
| | | }
|
| | |
|
| | | public long getId() {
|
| | | public Long getId() {
|
| | | return id;
|
| | | }
|
| | |
|
| | | public void setId(long id) {
|
| | | public void setId(Long id) {
|
| | | this.id = id;
|
| | | }
|
| | |
|
| | |
| | | this.name = name;
|
| | | }
|
| | |
|
| | | public long getUpdatetime() {
|
| | | public Long getUpdatetime() {
|
| | | return updatetime;
|
| | | }
|
| | |
|
| | | public void setUpdatetime(long 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;
|
| | | }
|
| | |
|
| | | }
|