Last change
on this file was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 20 months ago |
code added, trial 2
|
-
Property mode
set to
100644
|
File size:
711 bytes
|
Line | |
---|
1 | package com.example.fooddeliverysystem.model;
|
---|
2 |
|
---|
3 | import com.example.fooddeliverysystem.model.enums.Role;
|
---|
4 | import jakarta.persistence.*;
|
---|
5 | import lombok.AllArgsConstructor;
|
---|
6 | import lombok.Data;
|
---|
7 | import lombok.NoArgsConstructor;
|
---|
8 |
|
---|
9 | import java.time.LocalDate;
|
---|
10 |
|
---|
11 | @Entity
|
---|
12 | @Table(name = "korisnik")
|
---|
13 | @Data
|
---|
14 | @NoArgsConstructor
|
---|
15 | @AllArgsConstructor
|
---|
16 | public class User {
|
---|
17 |
|
---|
18 | @Id
|
---|
19 | @Column(name = "korisnik_id")
|
---|
20 | private Long user_id;
|
---|
21 |
|
---|
22 | @Column(name = "ime")
|
---|
23 | private String name;
|
---|
24 |
|
---|
25 | @Column(name = "datum_kreiranje")
|
---|
26 | private LocalDate dateCreated;
|
---|
27 |
|
---|
28 | @Column(name = "username")
|
---|
29 | private String username;
|
---|
30 |
|
---|
31 | @Column(name = "password")
|
---|
32 | private String password;
|
---|
33 |
|
---|
34 | @Transient
|
---|
35 | private Role userRole;
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.