1 | package com.example.db.model;
|
---|
2 |
|
---|
3 | import lombok.Data;
|
---|
4 |
|
---|
5 | import javax.persistence.*;
|
---|
6 | import java.util.Collection;
|
---|
7 |
|
---|
8 | @Data
|
---|
9 | @Entity
|
---|
10 | @Table(name="users")
|
---|
11 | public class Users {
|
---|
12 |
|
---|
13 | @Id
|
---|
14 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
15 | @Column(name = "user_id", nullable = false)
|
---|
16 | private Integer id;
|
---|
17 |
|
---|
18 | @Column(name = "user_name", nullable = false, length = 50)
|
---|
19 | private String userName;
|
---|
20 |
|
---|
21 | @Column(name = "surname", nullable = false, length = 50)
|
---|
22 | private String surname;
|
---|
23 |
|
---|
24 | @Column(name = "email", nullable = false, length = 50)
|
---|
25 | private String email;
|
---|
26 |
|
---|
27 | @Column(name = "username", nullable = false, length = 50)
|
---|
28 | private String username;
|
---|
29 |
|
---|
30 | @Column(name = "user_password", nullable = false, length = 50)
|
---|
31 | private String userPassword;
|
---|
32 |
|
---|
33 | public String getUserPassword() {
|
---|
34 | return userPassword;
|
---|
35 | }
|
---|
36 |
|
---|
37 | public void setUserPassword(String userPassword) {
|
---|
38 | this.userPassword = userPassword;
|
---|
39 | }
|
---|
40 |
|
---|
41 | public String getUsername() {
|
---|
42 | return username;
|
---|
43 | }
|
---|
44 |
|
---|
45 | public void setUsername(String username) {
|
---|
46 | this.username = username;
|
---|
47 | }
|
---|
48 |
|
---|
49 | public String getEmail() {
|
---|
50 | return email;
|
---|
51 | }
|
---|
52 |
|
---|
53 | public void setEmail(String email) {
|
---|
54 | this.email = email;
|
---|
55 | }
|
---|
56 |
|
---|
57 | public String getSurname() {
|
---|
58 | return surname;
|
---|
59 | }
|
---|
60 |
|
---|
61 | public void setSurname(String surname) {
|
---|
62 | this.surname = surname;
|
---|
63 | }
|
---|
64 |
|
---|
65 | public String getUserName() {
|
---|
66 | return userName;
|
---|
67 | }
|
---|
68 |
|
---|
69 | public void setUserName(String userName) {
|
---|
70 | this.userName = userName;
|
---|
71 | }
|
---|
72 |
|
---|
73 | public Integer getId() {
|
---|
74 | return id;
|
---|
75 | }
|
---|
76 |
|
---|
77 | public void setId(Integer id) {
|
---|
78 | this.id = id;
|
---|
79 | }
|
---|
80 | } |
---|