From f4a0f2acc63d7785eab108419a4e16f5f688cb95 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期六, 18 一月 2020 12:06:27 +0800
Subject: [PATCH] 用户注册信息

---
 fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBanner.java |   61 +++++++++++++-----------------
 1 files changed, 27 insertions(+), 34 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBanner.java b/fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBanner.java
index 871332a..c906847 100644
--- a/fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBanner.java
+++ b/fanli/src/main/java/com/yeshi/fanli/entity/bus/recommend/RecommendBanner.java
@@ -2,49 +2,42 @@
 
 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 org.yeshi.utils.mybatis.Column;
+import org.yeshi.utils.mybatis.Table;
 
 import com.yeshi.fanli.entity.common.JumpDetail;
 
 //鎺ㄨ崘Banner
-@Entity
-@Table(name = "yeshi_ec_recommend_banner")
-public class RecommendBanner implements Serializable{
+@Table("yeshi_ec_recommend_banner")
+public class RecommendBanner 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 = "jumpid")
+	private Long id;
+	@Column(name="jumpid")
 	private JumpDetail jumpDetail;// 璺宠浆璇︽儏
-	@Column(length = 256)
+	@Column(name = "params")
 	private String params;// 璺宠浆鍙傛暟
-	@Column(length = 256)
+	@Column(name = "picture")
 	private String picture;// 鍥剧墖閾炬帴
-	private long createtime;
-	private int orderby;// 鍊艰秺灏忚秺锟�?
+	@Column(name = "createtime")
+	private Long createtime;
+	@Column(name = "orderby")
+	private Integer orderby;// 鍊艰秺灏忚秺锟�?
 	@Column(name = "`show`")
-	private boolean show;// 鏄惁鏄剧ず
+	private Boolean show;// 鏄惁鏄剧ず
+	@Column(name = "`name`")
 	private String name;
 
 	public RecommendBanner() {
 	}
-	
-	public RecommendBanner(JumpDetail jumpDetail, String params,
-			String picture, long createtime, int orderby, boolean show) {
+
+	public RecommendBanner(JumpDetail jumpDetail, String params, String picture, Long createtime, Integer orderby,
+			Boolean show) {
 		super();
 		this.jumpDetail = jumpDetail;
 		this.params = params;
@@ -62,19 +55,19 @@
 		this.name = name;
 	}
 
-	public boolean isShow() {
+	public Boolean isShow() {
 		return show;
 	}
 
-	public void setShow(boolean show) {
+	public void setShow(Boolean show) {
 		this.show = show;
 	}
 
-	public long getId() {
+	public Long getId() {
 		return id;
 	}
 
-	public void setId(long id) {
+	public void setId(Long id) {
 		this.id = id;
 	}
 
@@ -102,19 +95,19 @@
 		this.picture = picture;
 	}
 
-	public long getCreatetime() {
+	public Long getCreatetime() {
 		return createtime;
 	}
 
-	public void setCreatetime(long createtime) {
+	public void setCreatetime(Long createtime) {
 		this.createtime = createtime;
 	}
 
-	public int getOrderby() {
+	public Integer getOrderby() {
 		return orderby;
 	}
 
-	public void setOrderby(int orderby) {
+	public void setOrderby(Integer orderby) {
 		this.orderby = orderby;
 	}
 }

--
Gitblit v1.8.0