openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harald Wellmann (Created) (JIRA)" <>
Subject [jira] [Created] (OPENJPA-2103) Incorrect statement order on flush with foreign keys
Date Thu, 29 Dec 2011 16:01:31 GMT
Incorrect statement order on flush with foreign keys

                 Key: OPENJPA-2103
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
    Affects Versions: 2.1.1
            Reporter: Harald Wellmann

In a schema with a cascading association with a foreign key, I'm having strange effects where
the SQL statements generated on em.flush() somtimes appear in the wrong order.

I've reduced this to a funny case where a passing test starts failing, as soon as it is preceded
by em.flush():

    public void testFlushFailure() {

The same tests both pass on Hibernate. I'm attaching a self-contained Maven Project to demonstrate
the issue.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message