Same issue here, using Hibernate 4.2.0 and Spring Webflow 2 with Websphere 8 (using WebSphereExtendedJtaPlatform) Webflow forces the FlushMode to MANUAL for non-transactional operations (as expected) and ValidityAuditStrategy sends an AutoFlush event prior to updating the previous RevisionEntity. The AutoFlush is ignored and no flush is performed, hence the FK constraint violation as the new RevisionEntity has not been inserted.
Using Tomcat (no JTA) the problem does not occur though.
|