From 744594ef1a2f530fc3e86ea9dc48b62247f79420 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 19 五月 2020 17:13:23 +0800 Subject: [PATCH] 饿了么绘图,添加口碑 --- fanli/src/main/java/com/yeshi/fanli/entity/system/SystemClientParams.java | 126 +++++++++++++++++------------------------- 1 files changed, 51 insertions(+), 75 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemClientParams.java b/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemClientParams.java index 32b6f9a..29504d7 100644 --- a/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemClientParams.java +++ b/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemClientParams.java @@ -2,77 +2,91 @@ 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 System system; - @Column(name = "`key`", length = 50) + private Long id; + + @Column(name = "systemid") + private BusinessSystem system; + + @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 + +// @Expose + @Column(name = "name") private String name; - @Expose - private long updatetime; + +// @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() { - // TODO Auto-generated constructor stub } - - public SystemClientParams(System system, String key, String value) { + + public SystemClientParams(BusinessSystem system, String key, String value) { super(); this.system = system; this.key = key; this.value = value; } - public long getId() { + public Long getId() { return id; } - public void setId(long id) { + public void setId(Long id) { this.id = id; } - public System getSystem() { + public BusinessSystem getSystem() { return system; } - public void setSystem(System system) { + public void setSystem(BusinessSystem system) { this.system = system; } @@ -100,49 +114,11 @@ 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; - } - } -- Gitblit v1.8.0