Skip to content

Commit

Permalink
Merge pull request #30 from UdL-EPS-SoftArch/crud-MedicalRecords
Browse files Browse the repository at this point in the history
MedicalRecord merge ralations to main
  • Loading branch information
jorgechp authored Feb 27, 2024
2 parents b744ccb + 68988d0 commit 2917a3a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package cat.udl.eps.softarch.demo.domain;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
Expand All @@ -28,4 +25,7 @@ public class MedicalRecord extends UriEntity<Long> {

@NotNull
private ZonedDateTime date;

@ManyToOne
private Pet pet;
}

0 comments on commit 2917a3a

Please sign in to comment.