I’m getting this TransientObjectException exception when flushing after deleting an entity. I think this is new since I upgrade Hibernate to 6.x
How do I know which entity is still holding a reference to said entity? The exception message only states the referenced entity but not the referencing one.
You can create an improvement Jira issue for your particular problem. It seems like we usually have a special subclass TransientPropertyValueException for telling more details, but maybe we didn’t make use of it in a particular scenario. For now, you’d have to debug to the point where the exception is created and figure this out through the stack frames.