Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 59003 invoked from network); 18 May 2009 07:43:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 May 2009 07:43:10 -0000 Received: (qmail 59088 invoked by uid 500); 18 May 2009 07:43:10 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 59007 invoked by uid 500); 18 May 2009 07:43:10 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 58997 invoked by uid 99); 18 May 2009 07:43:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 07:43:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2009 07:43:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D7E1B234C046 for ; Mon, 18 May 2009 00:42:45 -0700 (PDT) Message-ID: <1640259429.1242632565883.JavaMail.jira@brutus> Date: Mon, 18 May 2009 00:42:45 -0700 (PDT) From: "Amy Yang (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-1092) enable test case for jpql In-Reply-To: <1054012932.1242629446270.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amy Yang updated OPENJPA-1092: ------------------------------ Attachment: OPENJPA-1092.patch patch attached. > enable test case for jpql > ------------------------- > > Key: OPENJPA-1092 > URL: https://issues.apache.org/jira/browse/OPENJPA-1092 > Project: OpenJPA > Issue Type: Test > Components: jdbc > Affects Versions: 1.1.0 > Environment: OS: windows XP professional > java version 1.5.0_14 > Reporter: Amy Yang > Priority: Minor > Attachments: OPENJPA-1092.patch > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.