/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/yogee/zhebuy">JeeSite</a> All rights reserved.
 */
package com.yogee.zhebuy.modules.ebuy.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.yogee.zhebuy.common.persistence.EbuyEntity;

/**
 * 优惠券使用记录Entity
 * @author sunye
 * @version 2017-08-19
 */
public class EbuyCouponUseOf extends EbuyEntity<EbuyCouponUseOf> {
	
	private static final long serialVersionUID = 1L;
	private Long couponBusinessId;		// 用户优惠券关系表
	private Long businessId;		// 商家id
	private Long couponId;		// 优惠券id
	private String childOrderNum;		// 分订单号

	
	public EbuyCouponUseOf() {
		super();
	}

	public EbuyCouponUseOf(String id){
		super(id);
	}

	public Long getCouponBusinessId() {
		return couponBusinessId;
	}

	public void setCouponBusinessId(Long couponBusinessId) {
		this.couponBusinessId = couponBusinessId;
	}
	
	public Long getBusinessId() {
		return businessId;
	}

	public void setBusinessId(Long businessId) {
		this.businessId = businessId;
	}
	
	public Long getCouponId() {
		return couponId;
	}

	public void setCouponId(Long couponId) {
		this.couponId = couponId;
	}
	
	@Length(min=0, max=20, message="分订单号长度必须介于 0 和 20 之间")
	public String getChildOrderNum() {
		return childOrderNum;
	}

	public void setChildOrderNum(String childOrderNum) {
		this.childOrderNum = childOrderNum;
	}


}