hopefully fixed invited relationship II: The Revenge

This commit is contained in:
Tommaso Rodolfo Masera 2020-04-18 14:52:11 +02:00
parent d2aaa45a8b
commit 262dbf12e7

View file

@ -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<Invited> guests;
@Column(nullable = false)