This issue is really biting me: You can only batch inserts properly if they are ordered, so turning off the order_inserts setting is not a workaround. Has somebody found another workaround?
This is an up-to-date stack trace for the issue:
Caused by: java.lang.ClassCastException: org.hibernate.action.internal.EntityIdentityInsertAction cannot be cast to org.hibernate.action.internal.EntityInsertAction
at org.hibernate.engine.spi.ActionQueue$InsertActionSorter.sort(ActionQueue.java:750)
at org.hibernate.engine.spi.ActionQueue.sortInsertActions(ActionQueue.java:462)
at org.hibernate.engine.spi.ActionQueue.sortActions(ActionQueue.java:448)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:230)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1213)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:402)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175)
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:75)
... 10 more
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
This issue is really biting me: You can only batch inserts properly if they are ordered, so turning off the order_inserts setting is not a workaround. Has somebody found another workaround?
This is an up-to-date stack trace for the issue:
Caused by: java.lang.ClassCastException: org.hibernate.action.internal.EntityIdentityInsertAction cannot be cast to org.hibernate.action.internal.EntityInsertAction
at org.hibernate.engine.spi.ActionQueue$InsertActionSorter.sort(ActionQueue.java:750)
at org.hibernate.engine.spi.ActionQueue.sortInsertActions(ActionQueue.java:462)
at org.hibernate.engine.spi.ActionQueue.sortActions(ActionQueue.java:448)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:230)
at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1213)
at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:402)
at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101)
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:175)
at org.hibernate.ejb.TransactionImpl.commit(TransactionImpl.java:75)
... 10 more