Getting this error when querying through the SubjectResource:
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.radarbase.management.domain.Project.groups, could not initialize proxy - no Session
at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:614)
at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:218)
at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:162)
at org.hibernate.collection.internal.PersistentSet.size(PersistentSet.java:168)
at org.radarbase.management.service.mapper.ProjectMapperImpl_.groupSetToGroupDTOSet(ProjectMapperImpl_.java:203)
Getting this error when querying through the
SubjectResource
: