org.hibernate.HibernateException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web236

  • 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, 7 months ago
    immutable natural identifier of an instance of libhib.model.Property was altered
  • Stack trace

    • 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 org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:330) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86) at Main.changeItemDescription(Main.java:195) at Main.main(Main.java:385)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago