package com.yeshi.fanli.entity.bus.recommend;
|
|
import java.io.Serializable;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.GenerationType;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
|
import com.google.gson.annotations.Expose;
|
|
/**
|
* 推荐版块
|
*
|
* @author Administrator
|
*
|
*/
|
@Entity
|
@Table(name = "yeshi_ec_recommend_section")
|
public class RecommendSection implements Serializable{
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
@Id
|
@GeneratedValue(strategy = GenerationType.AUTO)
|
@Column(name = "id")
|
private long id;
|
@Expose
|
@Column(name = "`name`", length = 50)
|
private String name;
|
private int orderby;
|
@Column(name = "`show`")
|
private boolean show;// 是否显示
|
private long createtime;
|
@Expose
|
private int counts;
|
|
@Expose
|
private String picUrl;
|
@Expose
|
private String jumpUrl;
|
|
public RecommendSection() {
|
// TODO Auto-generated constructor stub
|
}
|
|
public RecommendSection(long id) {
|
super();
|
this.id = id;
|
}
|
|
public RecommendSection(String name, int orderby, boolean show,
|
long createtime, int counts) {
|
super();
|
this.name = name;
|
this.orderby = orderby;
|
this.show = show;
|
this.createtime = createtime;
|
this.counts = counts;
|
}
|
|
public String getPicUrl() {
|
return picUrl;
|
}
|
|
public void setPicUrl(String picUrl) {
|
this.picUrl = picUrl;
|
}
|
|
public String getJumpUrl() {
|
return jumpUrl;
|
}
|
|
public void setJumpUrl(String jumpUrl) {
|
this.jumpUrl = jumpUrl;
|
}
|
|
public int getCounts() {
|
return counts;
|
}
|
|
public void setCounts(int counts) {
|
this.counts = counts;
|
}
|
|
public long getId() {
|
return id;
|
}
|
|
public void setId(long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public int getOrderby() {
|
return orderby;
|
}
|
|
public void setOrderby(int orderby) {
|
this.orderby = orderby;
|
}
|
|
public boolean isShow() {
|
return show;
|
}
|
|
public void setShow(boolean show) {
|
this.show = show;
|
}
|
|
public long getCreatetime() {
|
return createtime;
|
}
|
|
public void setCreatetime(long createtime) {
|
this.createtime = createtime;
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + (int) (id ^ (id >>> 32));
|
return result;
|
}
|
|
@Override
|
public boolean equals(Object obj) {
|
if (this == obj)
|
return true;
|
if (obj == null)
|
return false;
|
if (getClass() != obj.getClass())
|
return false;
|
RecommendSection other = (RecommendSection) obj;
|
if (id != other.id)
|
return false;
|
return true;
|
}
|
|
}
|