package com.hy.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 优惠券 model
* @author rencuiman
* @date 2015-12-28 下午1:40:03
* @version 1.0.0
*/
@Entity
@Table(name="uu_coupon")
public class Coupon implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue
@Column(name="id", length = 10)
private Long id;
@Column(name = "status", length = 10)
private Long status;
@Column(name = "creater", length = 10)
private Long creater;
@Column(name = "create_date", length = 36)
private Date create_date;
@Column(name = "editer", length = 10)
private Long editer;
@Column(name = "update_date", length = 36)
private Date update_date;
@Column(name = "coupon_model_id", length = 10)
/**
* 优惠券模板id
*/
private Long coupon_model_id;
@Column(name = "coupon_name", length = 254)
/**
* 优惠券名称
*/
private String coupon_name;
@Column(name = "coupon_price", length = 20)
/**
* 优惠券价值
*/
private Long coupon_price;
@Column(name = "consumption_limit", length = 20)
/**
* 消费限制(元),
*/
private Long consumption_limit;
@Column(name = "service_category", length = 254)
/**
* 可用服务品类
*/
private String service_category;
@Column(name = "use_platform", length = 254)
/**
* 使用平台
*/
private String use_platform;
@Column(name = "application_areas", length = 10)
/**
* 适用地区
*/
private Long application_areas;
@Column(name = "effective_type", length = 1)
/**
* 有效时间(类型)(1天数,2起始时间)
*/
private Long effective_type;
@Column(name = "effective_time", length = 3)
/**
* 有效时间(日)
*/
private Long effective_time;
@Column(name = "start_time", length = 36)
/**
* 特定日期(开始)
*/
private Date start_time;
@Column(name = "end_time", length = 36)
/**
* 特定日期(结束)
*/
private Date end_time;
@Column(name = "caption1", length = 254)
/**
* 右侧第1行(说明文字)
*/
private String caption1;
@Column(name = "caption2", length = 254)
/**
* 右侧第2行(说明文字)
*/
private String caption2;
@Column(name = "caption3", length = 254)
/**
* 右侧第3行(说明文字)
*/
private String caption3;
@Column(name = "caption4", length = 254)
/**
* 左下(说明文字)
*/
private String caption4;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getStatus() {
return status;
}
public void setStatus(Long status) {
this.status = status;
}
public Long getCreater() {
return creater;
}
public void setCreater(Long creater) {
this.creater = creater;
}
public Date getCreate_date() {
return create_date;
}
public void setCreate_date(Date create_date) {
this.create_date = create_date;
}
public Long getEditer() {
return editer;
}
public void setEditer(Long editer) {
this.editer = editer;
}
public Date getUpdate_date() {
return update_date;
}
public void setUpdate_date(Date update_date) {
this.update_date = update_date;
}
public Long getCoupon_model_id() {
return coupon_model_id;
}
public void setCoupon_model_id(Long coupon_model_id) {
this.coupon_model_id = coupon_model_id;
}
public String getCoupon_name() {
return coupon_name;
}
public void setCoupon_name(String coupon_name) {
this.coupon_name = coupon_name;
}
public String getService_category() {
return service_category;
}
public void setService_category(String service_category) {
this.service_category = service_category;
}
public String getUse_platform() {
return use_platform;
}
public void setUse_platform(String use_platform) {
this.use_platform = use_platform;
}
public Long getApplication_areas() {
return application_areas;
}
public void setApplication_areas(Long application_areas) {
this.application_areas = application_areas;
}
public Long getEffective_type() {
return effective_type;
}
public void setEffective_type(Long effective_type) {
this.effective_type = effective_type;
}
public Long getEffective_time() {
return effective_time;
}
public void setEffective_time(Long effective_time) {
this.effective_time = effective_time;
}
public Date getStart_time() {
return start_time;
}
public void setStart_time(Date start_time) {
this.start_time = start_time;
}
public Date getEnd_time() {
return end_time;
}
public void setEnd_time(Date end_time) {
this.end_time = end_time;
}
public String getCaption1() {
return caption1;
}
public void setCaption1(String caption1) {
this.caption1 = caption1;
}
public String getCaption2() {
return caption2;
}
public void setCaption2(String caption2) {
this.caption2 = caption2;
}
public String getCaption3() {
return caption3;
}
public void setCaption3(String caption3) {
this.caption3 = caption3;
}
public String getCaption4() {
return caption4;
}
public void setCaption4(String caption4) {
this.caption4 = caption4;
}
public Long getCoupon_price() {
return coupon_price;
}
public void setCoupon_price(Long coupon_price) {
this.coupon_price = coupon_price;
}
public Long getConsumption_limit() {
return consumption_limit;
}
public void setConsumption_limit(Long consumption_limit) {
this.consumption_limit = consumption_limit;
}
}