source: src/main/java/com/example/moviezone/model/Worker.java@ d6f2228

Last change on this file since d6f2228 was e6b2246, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago

added models

  • Property mode set to 100644
File size: 390 bytes
Line 
1package com.example.moviezone.model;
2
3import jakarta.persistence.*;
4import lombok.Getter;
5import lombok.Setter;
6import lombok.ToString;
7
8@Entity
9@Getter
10@Setter
11@ToString
12@Table(name = "workers")
13@PrimaryKeyJoinColumn(name = "id_worker")
14public class Worker extends User {
15
16 String position;
17
18 String work_hours_from;
19 String work_hours_to;
20
21 @ManyToOne()
22 Cinema cinema;
23
24}
Note: See TracBrowser for help on using the repository browser.