From 13958a6b00580a0f984a07284a0b96859f1f784e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 15 五月 2019 10:27:07 +0800
Subject: [PATCH] 标签测试添加
---
fanli/src/main/java/com/yeshi/fanli/entity/system/SystemClientParams.java | 86 ++++++++++--------------------------------
1 files changed, 21 insertions(+), 65 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 399f4e1..deb6ccf 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,27 +2,18 @@
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"})})
+@Table("yeshi_ec_system_clientparams")
public class SystemClientParams implements Serializable{
/**
*
@@ -30,27 +21,30 @@
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;
+
public SystemClientParams() {
- // TODO Auto-generated constructor stub
}
public SystemClientParams(BusinessSystem system, String key, String value) {
@@ -60,11 +54,11 @@
this.value = value;
}
- public long getId() {
+ public Long getId() {
return id;
}
- public void setId(long id) {
+ public void setId(Long id) {
this.id = id;
}
@@ -100,49 +94,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