source: Prototype Application/Paw5/src/main/java/finki/paw5/model/Therapy.java@ d427a07

main
Last change on this file since d427a07 was d427a07, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 17 months ago

add models and enums

  • Property mode set to 100644
File size: 779 bytes
Line 
1package finki.paw5.model;
2
3import jakarta.persistence.Column;
4import jakarta.persistence.Entity;
5import jakarta.persistence.Id;
6import jakarta.persistence.Table;
7import lombok.Data;
8
9import java.util.Date;
10
11@Data
12@Entity
13@Table(name = "therapy")
14public class Therapy {
15
16 @Id
17 @Column(name = "id_therapy")
18 private int id;
19
20 @Column(name = "health_problem", nullable = false, length = 100)
21 private String healthProblem;
22
23 @Column(name = "start_date")
24 private Date startDate;
25
26 @Column(name = "end_date")
27 private Date endDate;
28
29 public Therapy(String healthProblem, Date startDate, Date endDate) {
30 this.healthProblem = healthProblem;
31 this.startDate = startDate;
32 this.endDate = endDate;
33 }
34
35 public Therapy() {
36 }
37}
Note: See TracBrowser for help on using the repository browser.