source: Prototype Application/Paw5/src/main/java/finki/paw5/model/Admin.java@ 8ae6217

main
Last change on this file since 8ae6217 was 579bf6d, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 17 months ago

added inheritance

  • Property mode set to 100644
File size: 427 bytes
RevLine 
[d427a07]1package finki.paw5.model;
2
[579bf6d]3import jakarta.persistence.*;
[d427a07]4import lombok.Data;
5
[579bf6d]6import java.time.LocalDate;
7
[d427a07]8@Data
9@Entity
10@Table(name = "admin_table")
[579bf6d]11@PrimaryKeyJoinColumn(name = "id_user")
12public class Admin extends User {
[d427a07]13
[579bf6d]14 public Admin(LocalDate dateCreated, String name, String email, String password, String telephone) {
15 super(dateCreated, name, email, password, telephone);
[d427a07]16 }
17
18 public Admin() {
19 }
20}
Note: See TracBrowser for help on using the repository browser.