|
|
@@ -1,6 +1,7 @@
|
|
|
package com.miekir.shibei.bean.db;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -104,14 +105,14 @@ public class GoodsBean {
|
|
|
*/
|
|
|
@ElementCollection
|
|
|
@Column(columnDefinition = "MEDIUMTEXT", name = "fanList", nullable = true, insertable = true, updatable = true)
|
|
|
- public List<String> fanList;
|
|
|
+ public List<String> fanList = new ArrayList<String>();
|
|
|
|
|
|
/**
|
|
|
* 磁力链接合集
|
|
|
*/
|
|
|
- @ElementCollection
|
|
|
- @Column(columnDefinition = "MEDIUMTEXT", name = "magnetBeanList", nullable = true, insertable = true, updatable = true)
|
|
|
- public List<MagnetBean> magnetBeanList;
|
|
|
+ @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
|
|
+ @Column(name = "magnetBeanList", nullable = true, insertable = true, updatable = true)
|
|
|
+ public List<MagnetBean> magnetBeanList = new ArrayList<MagnetBean>();
|
|
|
|
|
|
/**
|
|
|
* 是否已收藏
|
|
|
@@ -125,7 +126,7 @@ public class GoodsBean {
|
|
|
*/
|
|
|
@ElementCollection
|
|
|
@Column(columnDefinition = "MEDIUMTEXT", name = "contentImageUrlList", nullable = true, insertable = true, updatable = true)
|
|
|
- public List<String> contentImageUrlList;
|
|
|
+ public List<String> contentImageUrlList = new ArrayList<String>();
|
|
|
|
|
|
/**
|
|
|
* 创建时间
|