main
Last change
on this file since 6f9c38f was d427a07, checked in by SazdovaEkaterina <sazdovaekaterina@…>, 17 months ago |
add models and enums
|
-
Property mode
set to
100644
|
File size:
1019 bytes
|
Rev | Line | |
---|
[d427a07] | 1 | package finki.paw5.model.relations;
|
---|
| 2 |
|
---|
| 3 | import jakarta.persistence.Column;
|
---|
| 4 | import jakarta.persistence.Entity;
|
---|
| 5 | import jakarta.persistence.Id;
|
---|
| 6 | import jakarta.persistence.Table;
|
---|
| 7 | import lombok.Data;
|
---|
| 8 |
|
---|
| 9 | import java.util.Date;
|
---|
| 10 |
|
---|
| 11 | @Data
|
---|
| 12 | @Entity
|
---|
| 13 | @Table(name = "pet_needs_intervention_in_vet_clinic")
|
---|
| 14 | public class PetNeedsInterventionInVetClinic {
|
---|
| 15 |
|
---|
| 16 | @Id
|
---|
| 17 | @Column(name = "id_pet", nullable = false)
|
---|
| 18 | private int petId;
|
---|
| 19 |
|
---|
| 20 | @Id
|
---|
| 21 | @Column(name = "id_vet_clinic", nullable = false)
|
---|
| 22 | private int vetClinicId;
|
---|
| 23 |
|
---|
| 24 | @Column(name = "date_of_interventing", nullable = false)
|
---|
| 25 | private Date interventionDate;
|
---|
| 26 |
|
---|
| 27 | @Column(name = "description", length = 100)
|
---|
| 28 | private String description;
|
---|
| 29 |
|
---|
| 30 | public PetNeedsInterventionInVetClinic(int petId, int vetClinicId, Date interventionDate, String description) {
|
---|
| 31 | this.petId = petId;
|
---|
| 32 | this.vetClinicId = vetClinicId;
|
---|
| 33 | this.interventionDate = interventionDate;
|
---|
| 34 | this.description = description;
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | public PetNeedsInterventionInVetClinic() {
|
---|
| 38 |
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.