main
Last change
on this file since c3268ca was c3268ca, checked in by Stefan Risteski <stefanristeski2001@…>, 9 months ago |
Project
The whole Project
|
-
Property mode
set to
100644
|
File size:
740 bytes
|
Line | |
---|
1 | package com.example.kvizko.models;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.AllArgsConstructor;
|
---|
5 | import lombok.Data;
|
---|
6 | import lombok.NoArgsConstructor;
|
---|
7 | /*import org.springframework.security.core.GrantedAuthority;
|
---|
8 | import org.springframework.security.core.userdetails.UserDetails;*/
|
---|
9 |
|
---|
10 | import java.util.Collection;
|
---|
11 |
|
---|
12 | @Entity
|
---|
13 | @Data
|
---|
14 | @Table(name = "user_table")
|
---|
15 | public class User {
|
---|
16 |
|
---|
17 | @Id
|
---|
18 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
19 | private long userid;
|
---|
20 | private String fullname;
|
---|
21 | private String username;
|
---|
22 | private String passwordAttr;
|
---|
23 |
|
---|
24 | public User(String fullname, String username, String passwordAttr) {
|
---|
25 | this.fullname = fullname;
|
---|
26 | this.username = username;
|
---|
27 | this.passwordAttr = passwordAttr;
|
---|
28 | }
|
---|
29 |
|
---|
30 | public User() {}
|
---|
31 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.