source: src/main/java/com/example/moviezone/model/Salary.java@ 11dea8f

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

added models

  • Property mode set to 100644
File size: 439 bytes
Line 
1package com.example.moviezone.model;
2
3import jakarta.persistence.*;
4import lombok.Getter;
5import lombok.Setter;
6import lombok.ToString;
7
8import java.time.LocalDate;
9
10@Entity
11@Getter
12@Setter
13@ToString
14@Table(name = "salaries")
15public class Salary {
16 @Id
17 @GeneratedValue(strategy = GenerationType.IDENTITY)
18 Integer id_salary;
19
20 Integer sum;
21
22 LocalDate date_from;
23 LocalDate date_to;
24
25 @ManyToOne
26 Worker worker;
27}
Note: See TracBrowser for help on using the repository browser.