From bac2b25e5353c867437f5a6cbafbe3808241776c Mon Sep 17 00:00:00 2001 From: quimsb03 Date: Wed, 4 Dec 2024 18:11:44 +0100 Subject: [PATCH] fix: remove problematic rooms list --- src/main/java/cat/udl/eps/softarch/demo/domain/Apartment.java | 3 --- .../cat/udl/eps/softarch/demo/steps/AdvertisementStepDefs.java | 1 - 2 files changed, 4 deletions(-) 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 20cf6dc..fc5162d 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 @@ -34,9 +34,6 @@ public class Apartment extends UriEntity { @JsonIdentityReference(alwaysAsId = true) private Owner owner; - @OneToMany(cascade = CascadeType.ALL) - public List rooms; - @OneToOne @PrimaryKeyJoinColumn private ApartmentDetails detail; diff --git a/src/test/java/cat/udl/eps/softarch/demo/steps/AdvertisementStepDefs.java b/src/test/java/cat/udl/eps/softarch/demo/steps/AdvertisementStepDefs.java index 138364e..48b72bf 100644 --- a/src/test/java/cat/udl/eps/softarch/demo/steps/AdvertisementStepDefs.java +++ b/src/test/java/cat/udl/eps/softarch/demo/steps/AdvertisementStepDefs.java @@ -93,7 +93,6 @@ public void thereIsAnExistingApartmentWithIdNamed(String id, String name) { room.setApart(apartment); } - apartment.setRooms(rooms); apartmentRepository.save(apartment); }