Skip to content

Commit

Permalink
moved favourite relation to user
Browse files Browse the repository at this point in the history
  • Loading branch information
Antt02 committed Mar 25, 2024
1 parent 6707b06 commit daf16bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/cat/udl/eps/softarch/demo/domain/Pet.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,4 @@ public class Pet extends UriEntity<Long> {

@ManyToOne
public Shelter isIn;

@ManyToMany
public User[] favouritedBy;
}
3 changes: 3 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ public boolean isCredentialsNonExpired() {
public boolean isEnabled() {
return true;
}

@ManyToMany
Pet[] favouritedPets;
}

0 comments on commit daf16bf

Please sign in to comment.