From 262dbf12e793c47ed1a7e1a23722cd030f5a896a Mon Sep 17 00:00:00 2001 From: tommi27 Date: Sat, 18 Apr 2020 14:52:11 +0200 Subject: [PATCH] hopefully fixed invited relationship II: The Revenge --- .../java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/User.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/User.java b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/User.java index 8ad844d..67ba0a0 100644 --- a/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/User.java +++ b/src/main/java/ch/usi/inf/sa4/sanmarinoes/smarthut/models/User.java @@ -37,7 +37,7 @@ public class User { private String email; /** A host user who can invite guests to their smart house */ - @OneToMany(mappedBy = "host") + @OneToMany(mappedBy = "guest") private Set guests; @Column(nullable = false)