fe2a8701b6105bab9302ec8542cee094686857c5.svn-base 4.26 KB
/*
 * Powered By bj_ivt
 * Web Site: http://www.vjivt.com
 * 
 * Since 2015 - 2016
 */

package com.bjivt.showtime.api.entity;

import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import java.util.*;

import com.bjivt.showtime.api.entity.*;
import com.bjivt.showtime.api.dao.*;
import com.bjivt.showtime.api.service.*;

/**
 * @author Yh.T
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "tbl_redenvelop_record", catalog ="db_showtime_log")
public class RedenvelopRecord implements java.io.Serializable{
	private static final long serialVersionUID = 1254155325314435342L;
	
	//alias
	public static final String TABLE_ALIAS = "RedenvelopRecord";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_USER_ID = "用户ID";
	public static final String ALIAS_LIVE_ID = "直播ID";
	public static final String ALIAS_RED_ENVELOP_ID = "红包ID";
	public static final String ALIAS_MONEY = "金额";
	public static final String ALIAS_COUNT = "数量";
	public static final String ALIAS_TYPE = "1:发红包;2:收红包";
	public static final String ALIAS_RECORD_TIME = "recordTime";
	public static final String ALIAS_REMARK = "备注";

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//id
	private java.lang.Integer id;
	//用户ID
	private java.lang.Integer userId;
	//直播ID
	private java.lang.Integer liveId;
	//红包ID
	private java.lang.Integer redEnvelopId;
	//金额
	private java.lang.Integer money;
	//数量
	private java.lang.Integer count;
	//1:发红包;2:收红包
	private java.lang.Integer type;
	//recordTime
	private java.util.Date recordTime;
	//备注
	private java.lang.String remark;

	@Id 
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", unique = true, nullable = false, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getId() {
		return this.id;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	@Column(name = "user_id", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getUserId() {
		return this.userId;
	}
	
	public void setUserId(java.lang.Integer value) {
		this.userId = value;
	}
	
	@Column(name = "live_id", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getLiveId() {
		return this.liveId;
	}
	
	public void setLiveId(java.lang.Integer value) {
		this.liveId = value;
	}
	
	@Column(name = "red_envelop_id", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getRedEnvelopId() {
		return this.redEnvelopId;
	}
	
	public void setRedEnvelopId(java.lang.Integer value) {
		this.redEnvelopId = value;
	}
	
	@Column(name = "money", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getMoney() {
		return this.money;
	}
	
	public void setMoney(java.lang.Integer value) {
		this.money = value;
	}
	
	@Column(name = "count", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getCount() {
		return this.count;
	}
	
	public void setCount(java.lang.Integer value) {
		this.count = value;
	}
	
	@Column(name = "type", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.Integer getType() {
		return this.type;
	}
	
	public void setType(java.lang.Integer value) {
		this.type = value;
	}
//	
//	@Transient
//	public String getRecordTimeString() {
//		return DateConvertUtils.format(getRecordTime(), FORMAT_RECORD_TIME);
//	}
//	public void setRecordTimeString(String value) {
//		setRecordTime(DateConvertUtils.parse(value, FORMAT_RECORD_TIME,java.util.Date.class));
//	}
	
	@Column(name = "record_time", unique = false, nullable = true, insertable = true, updatable = true, length = 19)
	public java.util.Date getRecordTime() {
		return this.recordTime;
	}
	
	public void setRecordTime(java.util.Date value) {
		this.recordTime = value;
	}
	
	@Column(name = "remark", unique = false, nullable = true, insertable = true, updatable = true, length = 100)
	public java.lang.String getRemark() {
		return this.remark;
	}
	
	public void setRemark(java.lang.String value) {
		this.remark = value;
	}
	
	
}