org.hibernate.HibernateException: immutable natural identifier of an instance of org.hibernate.auction.AuctionItem was altered

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by michael jenik, 1 year ago
immutable natural identifier of an instance of org.hibernate.auction.AuctionItem was altered
via Hibernate JIRA by michael jenik, 1 year ago
immutable natural identifier of an instance of org.hibernate.auction.AuctionItem was altered
via Coderanch by waqas shahwar, 1 year ago
immutable natural identifier of an instance of libhib.model.Property was altered
org.hibernate.HibernateException: immutable natural identifier of an instance of org.hibernate.auction.AuctionItem was altered
at org.hibernate.event.def.DefaultFlushEntityEventListener.checkNaturalId(DefaultFlushEntityEventListener.java:75)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:116)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:187)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:73)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:736)
at undefined.Main.changeItemDescription(Main.java:195)
at undefined.Main.main(Main.java:385)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.