main
Last change
on this file since cadbec3 was ada7108, checked in by Filip Chorbeski <86695898+FilipChorbeski@…>, 20 months ago |
change ids from int to Integer
Co-Authored-By: SazdovaEkaterina <74919977+SazdovaEkaterina@…>
|
-
Property mode
set to
100644
|
File size:
791 bytes
|
Line | |
---|
1 | package finki.paw5.model.entities;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Data;
|
---|
5 |
|
---|
6 | import java.time.LocalDate;
|
---|
7 | import java.util.Date;
|
---|
8 |
|
---|
9 | @Data
|
---|
10 | @Entity
|
---|
11 | @Table(name = "therapy")
|
---|
12 | public class Therapy {
|
---|
13 |
|
---|
14 | @Id
|
---|
15 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
16 | @Column(name = "id_therapy")
|
---|
17 | private Integer id;
|
---|
18 |
|
---|
19 | @Column(name = "health_problem", nullable = false, length = 100)
|
---|
20 | private String healthProblem;
|
---|
21 |
|
---|
22 | @Column(name = "start_date")
|
---|
23 | private LocalDate startDate;
|
---|
24 |
|
---|
25 | @Column(name = "end_date")
|
---|
26 | private LocalDate endDate;
|
---|
27 |
|
---|
28 | public Therapy(String healthProblem, LocalDate startDate, LocalDate endDate) {
|
---|
29 | this.healthProblem = healthProblem;
|
---|
30 | this.startDate = startDate;
|
---|
31 | this.endDate = endDate;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public Therapy() {
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.