fe2a8701b6105bab9302ec8542cee094686857c5.svn-base
4.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/*
* 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;
}
}