Skip to content

Commit

Permalink
Added relation
Browse files Browse the repository at this point in the history
-Mario Fernandez
-Àlex Codina
  • Loading branch information
Codinab committed Feb 22, 2024
1 parent 78460de commit 68988d0
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 68988d0

Please sign in to comment.