1. DelayedPostInsertIdentifier exception on Hibernate upgrade forum.hibernate.orgProblem solved. Did some digging in the Hibernate code - it appears that even though the Spring JTATransactionManager was initialised by the application, Hibernate was falling back to using JDBCTransactionManager because we hadn't explicitly set the transaction manager for Hibernate. Hibernate's call to see whether it's participating in a transaction was therefore calling the wrong transaction manager, which is returning false. ... |
2. ClassCastException w/DelayedPostInsertIdentifier & HSQDB forum.hibernate.orgjava.lang.ClassCastException: org.hibernate.action.DelayedPostInsertIdentifier cannot be cast to java.lang.Long at org.hibernate.type.LongType.set(LongType.java:42) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:136) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:116) at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:87) at org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:38) at org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:491) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1563) at org.hibernate.loader.Loader.doQuery(Loader.java:673) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236) at org.hibernate.loader.Loader.doList(Loader.java:2220) at ... |
3. got org.hibernate.action.DelayedPostInsertIdentifier error forum.hibernate.orgHi, After upgrading to Hibernate 3.2.6, I'm running into this problem. I'm not sure if it is due to the upgrade or b/c of some other changes I've made, but I can't seem to get rid of it. Code: org.springframework.orm.hibernate3.HibernateSystemException: Provided id of the wrong type. Expected: class java.lang.Long, got class org.hibernate.action.DelayedPostInsertIdentifier; nested exception is org.hibernate.TypeMismatchException: Provided id of the wrong ... |