source: Prototype Application/Paw5/src/main/java/finki/paw5/model/relations/PetNeedsInterventionInVetClinic.java@ d1fe9c2

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

required args constructor

  • Property mode set to 100644
File size: 1019 bytes
Line 
1package finki.paw5.model.relations;
2
3import jakarta.persistence.*;
4import lombok.Data;
5import lombok.RequiredArgsConstructor;
6
7import java.time.LocalDate;
8import java.util.Date;
9
10@Data
11@Entity
12@RequiredArgsConstructor
13@Table(name = "pet_needs_intervention_in_vet_clinic")
14@IdClass(PetNeedsInterventionInVetClinicId.class)
15public class PetNeedsInterventionInVetClinic {
16
17 @Id
18 @Column(name = "id_pet", nullable = false)
19 private Integer petId;
20
21 @Id
22 @Column(name = "id_vet_clinic", nullable = false)
23 private Integer vetClinicId;
24
25 @Column(name = "date_of_interventing", nullable = false)
26 private LocalDate interventionDate;
27
28 @Column(name = "description", length = 100)
29 private String description;
30
31 public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, LocalDate interventionDate, String description) {
32 this.petId = petId;
33 this.vetClinicId = vetClinicId;
34 this.interventionDate = interventionDate;
35 this.description = description;
36 }
37}
Note: See TracBrowser for help on using the repository browser.