main
Last change
on this file since e76c5a6 was fdd7961, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 16 months ago |
fix many to one relations
|
-
Property mode
set to
100644
|
File size:
489 bytes
|
Line | |
---|
1 | package finki.paw5.model.entities;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 | import lombok.RequiredArgsConstructor;
|
---|
6 |
|
---|
7 | import java.time.LocalDate;
|
---|
8 |
|
---|
9 | @Data
|
---|
10 | @Entity
|
---|
11 | @RequiredArgsConstructor
|
---|
12 | @Table(name = "admin_table")
|
---|
13 | @PrimaryKeyJoinColumn(name = "id_user")
|
---|
14 | public class Admin extends User {
|
---|
15 |
|
---|
16 | public Admin(LocalDate dateCreated, String name, String email,
|
---|
17 | String password, String telephone) {
|
---|
18 | super(dateCreated, name, email, password, telephone);
|
---|
19 | }
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.