source: source/src/main/java/com/example/db/model/Roles.java

Last change on this file was bc0eeb4, checked in by Evgenija2000 <eva_nikolaevska@…>, 2 years ago

all files

  • Property mode set to 100644
File size: 966 bytes
Line 
1package com.example.db.model;
2
3import lombok.Data;
4
5import javax.persistence.*;
6
7@Data
8@Entity
9@Table(name="roles")
10public class Roles {
11 @Id
12 @GeneratedValue(strategy = GenerationType.IDENTITY)
13 private Integer id_role;
14 private String role_name;
15 private String role_desc;
16
17 public Roles(){}
18
19 public Roles(Integer id_role, String role_name, String role_desc) {
20 this.id_role = id_role;
21 this.role_name = role_name;
22 this.role_desc = role_desc;
23 }
24
25 public Integer getId_role() {
26 return id_role;
27 }
28
29 public void setId_role(Integer id_role) {
30 this.id_role = id_role;
31 }
32
33 public String getRole_name() {
34 return role_name;
35 }
36
37 public void setRole_name(String role_name) {
38 this.role_name = role_name;
39 }
40
41 public String getRole_desc() {
42 return role_desc;
43 }
44
45 public void setRole_desc(String role_desc) {
46 this.role_desc = role_desc;
47 }
48}
Note: See TracBrowser for help on using the repository browser.