InvalidDataAccessApiUsageException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save th...
Sentry Issue: QUEUE-KN
TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: nl.tudelft.ewi.queue.model.Lab
at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:347)
at org.hibernate.type.EntityType.getIdentifier(EntityType.java:495)
at org.hibernate.type.EntityType.nullSafeSet(EntityType.java:280)
at org.hibernate.persister.collection.AbstractCollectionPersister.writeElement(AbstractCollectionPersister.java:930)
at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1352)
...
(193 additional frame(s) were not displayed)
IllegalStateException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: nl.tudelft.ewi.queue.model.Lab
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:151)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
at org.hibernate.internal.SessionImpl.doFlush(SessionImpl.java:1356)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:443)
...
(183 additional frame(s) were not displayed)
InvalidDataAccessApiUsageException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: nl.tudelft.ewi.queue.model.Lab; nested exception is java.lang.IllegalStateException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: nl.tudelft.ewi.queue.model.Lab
at nl.tudelft.ewi.queue.service.LabService.repeatLabFor(LabService.java:159)
at nl.tudelft.ewi.queue.service.LabService.lambda$saveLab$0(LabService.java:204)
at nl.tudelft.ewi.queue.service.LabService.saveLab(LabService.java:204)
at nl.tudelft.ewi.queue.controller.LabController.create(LabController.java:364)
...
(173 additional frame(s) were not displayed)
org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: nl.tudelft.ewi.queue.model.Lab; nested exception is java.lang.IllegalStateException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: nl.tudelft.ewi.queue.model.Lab