-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14da462
commit e72e7be
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
...n/java/com/gestor_clinica_veterinaria/VeterinaryHospitalManager/Entity/ClinicHistory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.gestor_clinica_veterinaria.VeterinaryHospitalManager.Entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
|
||
import java.util.List; | ||
|
||
@Entity | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Table(name = "clinic_history") | ||
|
||
public class ClinicHistory { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long idClinicHistory; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "pet_id") | ||
private Pet pet; | ||
|
||
// @OneToMany(cascade = CascadeType.ALL) | ||
// private List<Consultation> consultations; | ||
|
||
@OneToMany(cascade = CascadeType.ALL) | ||
private List<DiagnosticEntity> diagnoses; | ||
|
||
@OneToMany(cascade = CascadeType.ALL) | ||
private List<Treatment> treatments; | ||
|
||
@OneToMany(cascade = CascadeType.ALL) | ||
private List<Surgery> surgeries; | ||
|
||
// @OneToMany(cascade = CascadeType.ALL) | ||
// private List<ComplementaryStudy> complementaryStudies; | ||
|
||
// @OneToMany(cascade = CascadeType.ALL) | ||
// private List<Hospitalization> hospitalizations; | ||
|
||
} |