Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 69355 invoked from network); 6 Mar 2009 22:40:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2009 22:40:17 -0000 Received: (qmail 86443 invoked by uid 500); 6 Mar 2009 22:40:17 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 86412 invoked by uid 500); 6 Mar 2009 22:40:17 -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 86395 invoked by uid 99); 6 Mar 2009 22:40:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Mar 2009 14:40:17 -0800 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; Fri, 06 Mar 2009 22:40:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2EE8A234C498 for ; Fri, 6 Mar 2009 14:39:56 -0800 (PST) Message-ID: <2077040810.1236379196177.JavaMail.jira@brutus> Date: Fri, 6 Mar 2009 14:39:56 -0800 (PST) From: "Donald Woods (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-878) Support default query hint for query timeout In-Reply-To: <1318299626.1233252779605.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/OPENJPA-878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Donald Woods updated OPENJPA-878: --------------------------------- Attachment: OPENJPA-878-20090306.patch Updated patch that only runs the junit tests only against Derby for now. Additional JIRAs 963 and 964 opened against I5 to complete test coverage items. EntityManagerImpl.java changes backed out. JPA 2.0 spec comments removed from FetchConfiguration.java and OpenJPAConfiguration.java. Usage of QueryTimeoutException.isFatal() not addressed, as the code matches what was done for lock timeouts. Method signature changes not addressed, as these were required to enable access to the queryTimeout value. Only reformatted TestQueryTimeout.java to 80 columns (using the 'where required' option in Eclipse.) > Support default query hint for query timeout > -------------------------------------------- > > Key: OPENJPA-878 > URL: https://issues.apache.org/jira/browse/OPENJPA-878 > Project: OpenJPA > Issue Type: Sub-task > Components: query > Affects Versions: 2.0.0 > Reporter: Donald Woods > Assignee: Donald Woods > Fix For: 2.0.0 > > Attachments: OPENJPA-878-20090305-draft.patch, OPENJPA-878-20090306.patch > > > Support default query hint for query timeout as defined in section 3.6.4 of the spec. > A new hint can be supplied for Java SE and Java EE environments - > javax.persistence.query.timeout // query timeout in seconds > Can be used in the following: > Methods - Query.setHint() > Annotations (via QueryHint) - NamedQuery, NativeNamedQuery > Properties - Persistence.createEntityManagerFactory, persistence.xml > The following methods can return a javax.persistence.QueryTimeoutException: getResultList(), getSingleResult(), executeUpdate(). > If a QTE is thrown, the current transaction (if active) should not be marked for rollback. > If the DB query timeout causes a rollback, then a PersistenceException should be thrown instead (see 3.6.1). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.