diff --git a/src/main/java/cat/udl/eps/softarch/demo/domain/User.java b/src/main/java/cat/udl/eps/softarch/demo/domain/User.java index 8fbaf36a..a7e9fa07 100644 --- a/src/main/java/cat/udl/eps/softarch/demo/domain/User.java +++ b/src/main/java/cat/udl/eps/softarch/demo/domain/User.java @@ -17,6 +17,7 @@ import org.springframework.security.crypto.password.PasswordEncoder; import java.util.Collection; +import java.util.List; @Entity @Table(name = "DemoUser") //Avoid collision with system table User @@ -76,7 +77,7 @@ public boolean isEnabled() { return true; } -// @ManyToMany -// public Pet[] favouritedPets; + @ManyToMany + public List favouritedPets; }