source: src/main/java/com/example/kvizko/models/User.java@ c3268ca

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 
1package com.example.kvizko.models;
2
3import jakarta.persistence.*;
4import lombok.AllArgsConstructor;
5import lombok.Data;
6import lombok.NoArgsConstructor;
7/*import org.springframework.security.core.GrantedAuthority;
8import org.springframework.security.core.userdetails.UserDetails;*/
9
10import java.util.Collection;
11
12@Entity
13@Data
14@Table(name = "user_table")
15public 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.