哪个更新查询导致org.hibernate.StaleObjectStateException

时间:2014-06-07 16:40:52

标签: java hibernate jdbc

我正在获取org.hibernate.StaleObjectStateException并想知道哪个实体更新导致了异常。我获得的只是实体名称和Id的例外,如下所示:

org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.sample.model.User#f5a3483a-625e-446c-a8a9-91e18c222220]

由于此特定部分可能存在多种情况,我想知道发生了哪种情况,我需要知道导致它的查询。我怎么得到它?我根本无法使用show query,因为这只发生在生产中。

0 个答案:

没有答案