Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 14435 invoked from network); 11 Nov 2008 03:24:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Nov 2008 03:24:05 -0000 Received: (qmail 59194 invoked by uid 500); 11 Nov 2008 03:24:12 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 59170 invoked by uid 500); 11 Nov 2008 03:24: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 59159 invoked by uid 99); 11 Nov 2008 03:24:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Nov 2008 19:24: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 03:23:01 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 30A77234C256 for ; Mon, 10 Nov 2008 19:23:44 -0800 (PST) Message-ID: <562725791.1226373824184.JavaMail.jira@brutus> Date: Mon, 10 Nov 2008 19:23:44 -0800 (PST) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Created: (OPENJPA-765) Check for insertable or updateable before checking value for null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.2.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.