Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 71748 invoked from network); 3 Apr 2011 05:36:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Apr 2011 05:36:48 -0000 Received: (qmail 16091 invoked by uid 500); 3 Apr 2011 05:36:47 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 16041 invoked by uid 500); 3 Apr 2011 05:36:46 -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 16033 invoked by uid 99); 3 Apr 2011 05:36:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Apr 2011 05:36:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Apr 2011 05:36:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AACC09022B for ; Sun, 3 Apr 2011 05:36:05 +0000 (UTC) Date: Sun, 3 Apr 2011 05:36:05 +0000 (UTC) From: "Patrick Linskey (JIRA)" To: dev@openjpa.apache.org Message-ID: <505050716.30936.1301808965680.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1672940921.30935.1301808485704.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (OPENJPA-1973) Unlocked field support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey updated OPENJPA-1973: ------------------------------------- Attachment: OPENJPA-1973.patch This patch implements this feature. Caveats: 1. I didn't even think about impact on data caching 2. The tests only cover basic field types. I expect the code works for relationship fields also, but did not test. 3. No docs 4. I didn't test / implement XML-based configuration -- @Unlocked is the only option currently. 5. I ran a few tests, and it seemed to pass, but I have not run a full test suite. > Unlocked field support > ---------------------- > > Key: OPENJPA-1973 > URL: https://issues.apache.org/jira/browse/OPENJPA-1973 > Project: OpenJPA > Issue Type: New Feature > Components: docs, jdbc, jpa > Reporter: Patrick Linskey > Assignee: Patrick Linskey > Attachments: OPENJPA-1973.patch > > > Often, it's desirable to exclude certain fields from the optimistic locking computation. For example, if a PurchaseOrder's lastUpdatedDate field is updated every time a line item is added, it may be acceptable to simply use the latest value instead of requiring an optimistic lock check / collision. > Let's add support for such fields. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira