Skip to content

Commit

Permalink
Merge pull request #114 from UdL-EPS-SoftArch/fix-solve-listroom-problem
Browse files Browse the repository at this point in the history
fix: remove problematic rooms list
  • Loading branch information
jorgechp authored Dec 4, 2024
2 parents b32c971 + bac2b25 commit 726248c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Apartment.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ public class Apartment extends UriEntity<Long> {
@JsonIdentityReference(alwaysAsId = true)
private Owner owner;

@OneToMany(cascade = CascadeType.ALL)
public List<Room> rooms;

@OneToOne
@PrimaryKeyJoinColumn
private ApartmentDetails detail;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ public void thereIsAnExistingApartmentWithIdNamed(String id, String name) {
room.setApart(apartment);
}

apartment.setRooms(rooms);
apartmentRepository.save(apartment);
}

Expand Down

0 comments on commit 726248c

Please sign in to comment.