From 26138b987448d8c4c3b0e7a0ef92b96dc03de271 Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期一, 05 八月 2019 11:00:55 +0800
Subject: [PATCH] 动态商品为空 bug
---
fanli/src/main/java/com/yeshi/fanli/entity/system/SystemConfig.java | 70 ++++++++++++++--------------------
1 files changed, 29 insertions(+), 41 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemConfig.java b/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemConfig.java
index 87a9dc5..9e26ab1 100644
--- a/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemConfig.java
+++ b/fanli/src/main/java/com/yeshi/fanli/entity/system/SystemConfig.java
@@ -3,21 +3,8 @@
import java.util.HashSet;
import java.util.Set;
-import javax.persistence.CascadeType;
-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.JoinTable;
-import javax.persistence.ManyToMany;
-import javax.persistence.Table;
-
-import org.hibernate.annotations.Cascade;
-import org.hibernate.annotations.Fetch;
-import org.hibernate.annotations.FetchMode;
+import org.yeshi.utils.mybatis.Column;
+import org.yeshi.utils.mybatis.Table;
/**
* 绯荤粺閰嶇疆鍙傛暟
@@ -25,47 +12,40 @@
* @author Administrator
*
*/
-@Entity
-@Table(name = "yeshi_ec_system_config")
+@Table("yeshi_ec_system_config")
public class SystemConfig {
- @Id
- @GeneratedValue(strategy = GenerationType.AUTO)
+
@Column(name = "id")
- private long id;
- @ManyToMany(fetch = FetchType.EAGER)
- @JoinTable(name="yeshi_ec_system_systemconfig",joinColumns=@JoinColumn(name="scid",referencedColumnName="id"),inverseJoinColumns=@JoinColumn(name="sid",referencedColumnName="id"))
- private Set<System> systems=new HashSet<System>();
- @Column(name = "`key`", length = 50)
+ private Long id;
+
+ @Column(name = "key")
private String key;
- @Column(name = "`value`", length = 1024)
+
+ @Column(name = "value")
private String value;
- @Column(name = "`name`", length = 50)
+
+ @Column(name = "name")
private String name;
- private long updatetime;
+
+ @Column(name = "updatetime")
+ private Long updatetime;
+
+ private Set<BusinessSystem> systems=new HashSet<BusinessSystem>();
public SystemConfig() {
- // TODO Auto-generated constructor stub
}
- public SystemConfig(long id) {
+ public SystemConfig(Long id) {
super();
this.id = id;
}
- public long getId() {
+ public Long getId() {
return id;
}
- public void setId(long id) {
+ public void setId(Long id) {
this.id = id;
- }
-
- public Set<System> getSystems() {
- return systems;
- }
-
- public void setSystems(Set<System> systems) {
- this.systems = systems;
}
public String getKey() {
@@ -92,11 +72,19 @@
this.name = name;
}
- public long getUpdatetime() {
+ public Long getUpdatetime() {
return updatetime;
}
- public void setUpdatetime(long updatetime) {
+ public void setUpdatetime(Long updatetime) {
this.updatetime = updatetime;
}
+
+ public Set<BusinessSystem> getSystems() {
+ return systems;
+ }
+
+ public void setSystems(Set<BusinessSystem> systems) {
+ this.systems = systems;
+ }
}
--
Gitblit v1.8.0