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 | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Getter;
|
---|
5 | import lombok.Setter;
|
---|
6 | import lombok.ToString;
|
---|
7 |
|
---|
8 | @Entity
|
---|
9 | @Getter
|
---|
10 | @Setter
|
---|
11 | @ToString
|
---|
12 | @Table(name = "workers")
|
---|
13 | @PrimaryKeyJoinColumn(name = "id_worker")
|
---|
14 | public 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.