01710d846def643b99ea5271d603237a68bced7f.svn-base
2.49 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
/*
* 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_level")
public class Level implements java.io.Serializable{
private static final long serialVersionUID = 5454155825314635342L;
//alias
private static final String TABLE_ALIAS = "Level";
private static final String ALIAS_ID = "id";
private static final String ALIAS_NAME = "名称";
private static final String ALIAS_LEVEL = "等级";
private static final String ALIAS_EXP_START = "起始经验值";
private static final String ALIAS_EXP_END = "结束经验值";
//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
//id
private java.lang.Integer id;
//名称
private java.lang.String name;
//等级
private java.lang.String level;
//起始经验值
private java.lang.Integer expStart;
//结束经验值
private java.lang.Integer expEnd;
@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 = "name", unique = false, nullable = false, insertable = true, updatable = true, length = 255)
public java.lang.String getName() {
return this.name;
}
public void setName(java.lang.String value) {
this.name = value;
}
@Column(name = "level", unique = false, nullable = false, insertable = true, updatable = true, length = 255)
public java.lang.String getLevel() {
return this.level;
}
public void setLevel(java.lang.String value) {
this.level = value;
}
@Column(name = "exp_start", unique = false, nullable = false, insertable = true, updatable = true, length = 10)
public java.lang.Integer getExpStart() {
return this.expStart;
}
public void setExpStart(java.lang.Integer value) {
this.expStart = value;
}
@Column(name = "exp_end", unique = false, nullable = false, insertable = true, updatable = true, length = 10)
public java.lang.Integer getExpEnd() {
return this.expEnd;
}
public void setExpEnd(java.lang.Integer value) {
this.expEnd = value;
}
}