Last change
on this file was 2269653, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
First Run No error
|
-
Property mode
set to
100644
|
File size:
473 bytes
|
Rev | Line | |
---|
[caf3a07] | 1 | package com.example.moviezone.model;
|
---|
| 2 |
|
---|
[2269653] | 3 | import javax.persistence.*;
|
---|
[caf3a07] | 4 | import lombok.Getter;
|
---|
| 5 | import lombok.Setter;
|
---|
| 6 | import lombok.ToString;
|
---|
| 7 |
|
---|
| 8 | import java.time.LocalDate;
|
---|
| 9 |
|
---|
| 10 | @Entity
|
---|
| 11 | @Getter
|
---|
| 12 | @Setter
|
---|
| 13 | @ToString
|
---|
| 14 | @Table(name = "salaries")
|
---|
| 15 | public 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
|
---|
[eb226b2] | 26 | @JoinColumn(name = "id_worker")
|
---|
[caf3a07] | 27 | Worker worker;
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.