fixed jpa annotations for one to many

This commit is contained in:
Sheldan
2020-05-09 16:21:48 +02:00
parent da8fea34da
commit aba98ef0c6
6 changed files with 19 additions and 21 deletions

View File

@@ -59,9 +59,8 @@ public class AExperienceRole implements Serializable {
/**
* Current list of {@link dev.sheldan.abstracto.core.models.database.AUserInAServer} which were given this role.
*/
@OneToMany(fetch = FetchType.LAZY)
@OneToMany(fetch = FetchType.LAZY, mappedBy = "currentExperienceRole")
@Builder.Default
@JoinColumn(name = "experience_role_id")
@org.hibernate.annotations.Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
private List<AUserExperience> users = new ArrayList<>();