source:
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Therapy.java@
b00d81b
Last change on this file since b00d81b was ada7108, checked in by , 20 months ago | |
---|---|
|
|
File size: 791 bytes |
Rev | Line | |
---|---|---|
[3d3e59d] | 1 | package finki.paw5.model.entities; |
[d427a07] | 2 | |
[038c9f7] | 3 | import jakarta.persistence.*; |
[d427a07] | 4 | import lombok.Data; |
5 | ||
[fdfc6fa] | 6 | import java.time.LocalDate; |
[d427a07] | 7 | import java.util.Date; |
8 | ||
9 | @Data | |
10 | @Entity | |
11 | @Table(name = "therapy") | |
12 | public class Therapy { | |
13 | ||
14 | @Id | |
[038c9f7] | 15 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
[d427a07] | 16 | @Column(name = "id_therapy") |
[ada7108] | 17 | private Integer id; |
[d427a07] | 18 | |
19 | @Column(name = "health_problem", nullable = false, length = 100) | |
20 | private String healthProblem; | |
21 | ||
22 | @Column(name = "start_date") | |
[fdfc6fa] | 23 | private LocalDate startDate; |
[d427a07] | 24 | |
25 | @Column(name = "end_date") | |
[fdfc6fa] | 26 | private LocalDate endDate; |
[d427a07] | 27 | |
[fdfc6fa] | 28 | public Therapy(String healthProblem, LocalDate startDate, LocalDate endDate) { |
[d427a07] | 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.