# TransientObjectException : who's holding the reference

**URL:** https://discourse.hibernate.org/t/transientobjectexception-whos-holding-the-reference/11986
**Category:** Hibernate ORM
**Created:** [November 21, 2025, 10:09pm UTC](https://discourse.hibernate.org/t/transientobjectexception-whos-holding-the-reference/11986 "2025-11-21T22:09:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DIrkOnTilt](https://avatars.discourse-cdn.com/v4/letter/d/ea666f/32.png) [@DIrkOnTilt](https://discourse.hibernate.org/u/DIrkOnTilt)
#### Post date: [November 21, 2025, 10:09pm UTC](https://discourse.hibernate.org/t/transientobjectexception-whos-holding-the-reference/11986/1 "2025-11-21T22:09:21Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)
#### Post date: [November 24, 2025, 9:17am UTC](https://discourse.hibernate.org/t/transientobjectexception-whos-holding-the-reference/11986/2 "2025-11-24T09:17:57Z")

</div>

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.
