I have to classes that have a one-to-many-relation. When I try to access the lazily loaded collection I get the LazyInitializationException. I searching the web
LazyInitializationException
Change
@OneToMany(mappedBy = "creator") private Set createdJobs = new HashSet<>();
to
@OneToMany(fetch = FetchType.EAGER, mappedBy = "creator") private Set createdJobs = new HashSet<>();
Or use Hibernate.initialize inside your service, which has the same effect.