Repository navigation
Expand file tree
/
Copy pathPlayer.java
More file actions
154 lines (118 loc) · 3.22 KB
/
Copy pathPlayer.java
File metadata and controls
154 lines (118 loc) · 3.22 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
package com.game.entity;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table (name="player")
public class Player {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="id")
private int id;
@Column(name="name")
private String name;
@Column(name="title")
private String title;
@Column(name="race")
private String race;
@Column(name="profession")
private String profession;
@Column(name="experience")
private Integer experience;
@Column(name="level")
private Integer level;
@Column(name="untilNextLevel")
private Integer untilNextLevel;
@Column(name="birthday")
private Date birthday;
@Column (name="banned")
private Boolean banned;
public Player() {
}
public Player(int id, String name, String title, String race, String profession, Integer experience, Integer level, Integer untilNextLevel, Date birthday, Boolean banned) {
this.id = id;
this.name = name;
this.title = title;
this.race = race;
this.profession = profession;
this.experience = experience;
this.level = level;
this.untilNextLevel = untilNextLevel;
this.birthday = birthday;
this.banned = banned;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getRace() {
return race;
}
public void setRace(String race) {
this.race = race;
}
public String getProfession() {
return profession;
}
public void setProfession(String profession) {
this.profession = profession;
}
public Integer getExperience() {
return experience;
}
public void setExperience(Integer experience) {
this.experience = experience;
}
public Integer getLevel() {
return level;
}
public void setLevel(Integer level) {
this.level = level;
}
public Integer getUntilNextLevel() {
return untilNextLevel;
}
public void setUntilNextLevel(Integer untilNextLevel) {
this.untilNextLevel = untilNextLevel;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public Boolean getBanned() {
return banned;
}
public void setBanned(Boolean banned) {
this.banned = banned;
}
@Override
public String toString() {
return "Player{" +
"id=" + id +
", name='" + name + '\'' +
", title='" + title + '\'' +
", race='" + race + '\'' +
", profession='" + profession + '\'' +
", experience=" + experience +
", level=" + level +
", untilNextLevel=" + untilNextLevel +
", birthday=" + birthday +
", banned=" + banned +
'}';
}
}