source:
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Admin.java@
e4e8212
Last change on this file since e4e8212 was fdd7961, checked in by , 16 months ago | |
---|---|
|
|
File size: 489 bytes |
Rev | Line | |
---|---|---|
[3d3e59d] | 1 | package finki.paw5.model.entities; |
[d427a07] | 2 | |
[579bf6d] | 3 | import jakarta.persistence.*; |
[d427a07] | 4 | import lombok.Data; |
[fdd7961] | 5 | import lombok.RequiredArgsConstructor; |
[d427a07] | 6 | |
[579bf6d] | 7 | import java.time.LocalDate; |
8 | ||
[d427a07] | 9 | @Data |
10 | @Entity | |
[fdd7961] | 11 | @RequiredArgsConstructor |
[d427a07] | 12 | @Table(name = "admin_table") |
[579bf6d] | 13 | @PrimaryKeyJoinColumn(name = "id_user") |
14 | public class Admin extends User { | |
[d427a07] | 15 | |
[fdd7961] | 16 | public Admin(LocalDate dateCreated, String name, String email, |
17 | String password, String telephone) { | |
[579bf6d] | 18 | super(dateCreated, name, email, password, telephone); |
[d427a07] | 19 | } |
20 | } |
Note:
See TracBrowser
for help on using the repository browser.