Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 87283 invoked from network); 11 Nov 2008 16:43:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2008 16:43:05 -0000 Received: (qmail 45323 invoked by uid 500); 11 Nov 2008 16:43:12 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 45295 invoked by uid 500); 11 Nov 2008 16:43:12 -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 45284 invoked by uid 99); 11 Nov 2008 16:43:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2008 08:43:12 -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; Tue, 11 Nov 2008 16:42:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 342BB234C286 for ; Tue, 11 Nov 2008 08:42:44 -0800 (PST) Message-ID: <1035154091.1226421764199.JavaMail.jira@brutus> Date: Tue, 11 Nov 2008 08:42:44 -0800 (PST) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (OPENJPA-765) Check for insertable or updateable before checking value for null In-Reply-To: <562725791.1226373824184.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-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick updated OPENJPA-765: --------------------------------- Fix Version/s: 2.0.0 1.3.0 > Check for insertable or updateable before checking value for null > ----------------------------------------------------------------- > > Key: OPENJPA-765 > URL: https://issues.apache.org/jira/browse/OPENJPA-765 > Project: OpenJPA > Issue Type: Sub-task > Affects Versions: 1.2.0, 1.2.1, 1.3.0, 2.0.0 > Reporter: Michael Dick > Assignee: Michael Dick > Fix For: 1.2.1, 1.3.0, 2.0.0 > > > The fix for OPENJPA-665 exposed another issue with checking for null. If the entity contains a "read-only" attribute (insertable=false, updatable=false) should we also check whether the value is null? > A practical use case for this is a Date attribute which is automatically generated by the database, ie > @Column(insertable=false, updatable=false, nullable=false, columnDefinition="LAST_UPD DEFAULT CURRENT_DATE") > private Date lastUpdated; > Before the fix for OPENJPA-665 such an attribute would not be checked for null. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.