-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathUser.java
More file actions
45 lines (34 loc) · 798 Bytes
/
User.java
File metadata and controls
45 lines (34 loc) · 798 Bytes
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
package com.accenture.codingtest.springbootcodingtest.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "user")
public class User {
@Id
@Column(name = "id")
private String id;
@Column(name = "user_name", length = 150, unique = true)
private String userName;
@Column(name = "password", length = 50)
private String password;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}