diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/Apartment.java b/src/main/java/cat/udl/eps/softarch/demo/domain/Apartment.java index fc5162d..0c55b40 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/Apartment.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/Apartment.java @@ -6,7 +6,6 @@ import lombok.*; import java.time.ZonedDateTime; -import java.util.List; @EqualsAndHashCode(callSuper = true) @Entity(name = "apartment") diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/ApartmentDetails.java b/src/main/java/cat/udl/eps/softarch/demo/domain/ApartmentDetails.java index dac66ff..bd91c7a 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/ApartmentDetails.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/ApartmentDetails.java @@ -2,7 +2,6 @@ import jakarta.persistence.Entity; import jakarta.persistence.Id; -import jakarta.persistence.OneToOne; import jakarta.validation.constraints.Min; import jakarta.validation.constraints.NotNull; import lombok.*; @@ -13,7 +12,6 @@ @AllArgsConstructor @Builder @NoArgsConstructor - public class ApartmentDetails extends UriEntity { @Id private Long id; @@ -26,7 +24,4 @@ public class ApartmentDetails extends UriEntity { private int numBedrooms; private boolean hasAC; private boolean hasElevator; - - @OneToOne - private Apartment apartment; } \ No newline at end of file