Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1092

enable test case for jpql

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0, 1.2.1
    • 1.2.2, 1.3.0, 2.0.0-M2
    • jdbc
    • None
    • OS: windows XP professional
      java version 1.5.0_14
    • Patch Available

    Description

      Currently TestEJBQueryInterface is excluded.

      To enable it, just a little change is needed: invoking em.flush() after every em.persist().

      The test case wants to get the result depends on the order of the creation of the entity instance. but we (as well as most other JPA implementations) don't care about the creation order of java instances because the insertion happens when the transaction is committed or flush is invoked. So adding "em.flush()" after "em.persist()" will resolve the problem.

      Attachments

        1. OPENJPA-1092.patch
          1 kB
          Amy Yang

        Issue Links

          Activity

            People

              mikedd Michael Dick
              amy Amy Yang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: