package finki.paw5.model.entities; import jakarta.persistence.*; import lombok.Data; import java.time.LocalDate; import java.util.Date; @Data @Entity @Table(name = "therapy") public class Therapy { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id_therapy") private Integer id; @Column(name = "health_problem", nullable = false, length = 100) private String healthProblem; @Column(name = "start_date") private LocalDate startDate; @Column(name = "end_date") private LocalDate endDate; public Therapy(String healthProblem, LocalDate startDate, LocalDate endDate) { this.healthProblem = healthProblem; this.startDate = startDate; this.endDate = endDate; } public Therapy() { } }