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 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
| package edu.sodteam.bean;
import javax.persistence.*;
import java.util.Date;
@Entity
@Table(name="client")
public class Client {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id_client")
private Integer id;
@Column(name="gender")
private String gender;
@Column(name="statut")
private String statut;
@Column(name="first_name")
private String first_name;
@Column(name="last_name")
private String last_name;
@Column(name="income")
private float income;
@Column(name="city")
private String city;
@Column(name="street")
private String street;
@Column(name="postal_code")
private String postal_code;
@Column(name="phone_number")
private String phone_number;
@Column(name="mail")
private String mail;
@Column(name="birthday")
private Date birthday;
@Column(name="birthplace_city")
private String birthplace_city;
@Column(name="nationality")
private String nationality;
@JoinColumn(name="id_status")
@ManyToOne
private Status status;
@JoinColumn(name="id_workgroup")
@ManyToOne
private WorkGroup workGroup;
@JoinColumn(name="id_user")
@ManyToOne
private User user;
@Column(name="abnormal_transaction_service")
private boolean abnormalTransactionService;
public Client(String gender, String statut, String first_name, String last_name, float income, String city, String street, String postal_code, String phone_number, String mail, Date birthday, String birthplace_city, String nationality) {
this.gender = gender;
this.statut = statut;
this.first_name = first_name;
this.last_name = last_name;
this.income = income;
this.city = city;
this.street = street;
this.postal_code = postal_code;
this.phone_number = phone_number;
this.mail = mail;
this.birthday = birthday;
this.birthplace_city = birthplace_city;
this.nationality = nationality;
}
public Client() {
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getStatut() {
return statut;
}
public void setStatut(String statut) {
this.statut = statut;
}
public String getFirstname() {
return first_name;
}
public void setFirstname(String first_name) {
this.first_name = first_name;
}
public String getLastname() {
return last_name;
}
public void setLastname(String last_name) {
this.last_name = last_name;
}
public float getIncome() {
return income;
}
public void setIncome(float income) {
this.income = income;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getStreet() {
return street;
}
public void setStreet(String street) {
this.street = street;
}
public String getPostalcode() {
return postal_code;
}
public void setPostalcode(String postal_code) {
this.postal_code = postal_code;
}
public String getPhonenumber() {
return phone_number;
}
public void setPhonenumber(String phone_number) {
this.phone_number = phone_number;
}
public String getMail() {
return mail;
}
public void setMail(String mail) {
this.mail = mail;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public String getBirthplacecity() {
return birthplace_city;
}
public void setBirthplacecity(String birthplace_city) {
this.birthplace_city = birthplace_city;
}
public String getNationality() {
return nationality;
}
public void setNationality(String nationality) {
this.nationality = nationality;
}
public Status getStatus() {
return status;
}
public void setStatus(Status status) {
this.status = status;
}
public WorkGroup getWorkGroup() {
return workGroup;
}
public void setWorkGroup(WorkGroup workGroup) {
this.workGroup = workGroup;
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public boolean isAbnormalTransactionService() {
return abnormalTransactionService;
}
public void setAbnormalTransactionService(boolean abnormalTransactionService) {
this.abnormalTransactionService = abnormalTransactionService;
}
} |
Partager