From dev-return-10891-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Sun Mar 08 18:00:19 2009 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 23252 invoked from network); 8 Mar 2009 18:00:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2009 18:00:19 -0000 Received: (qmail 74164 invoked by uid 500); 8 Mar 2009 18:00:19 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 74131 invoked by uid 500); 8 Mar 2009 18:00:19 -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 74120 invoked by uid 99); 8 Mar 2009 18:00:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 11:00:19 -0700 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; Sun, 08 Mar 2009 18:00:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2369D234C48C for ; Sun, 8 Mar 2009 10:59:56 -0700 (PDT) Message-ID: <1615269458.1236535196129.JavaMail.jira@brutus> Date: Sun, 8 Mar 2009 10:59:56 -0700 (PDT) From: "Michael Dick (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Reopened: (OPENJPA-811) With Oracle, OpenJPA allows setting non-nullable field to null In-Reply-To: <1903313414.1228329944450.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-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Dick reopened OPENJPA-811: ---------------------------------- Assignee: Michael Dick (was: Albert Lee) Assigning to me to merge fix to 1.3.x. > With Oracle, OpenJPA allows setting non-nullable field to null > -------------------------------------------------------------- > > Key: OPENJPA-811 > URL: https://issues.apache.org/jira/browse/OPENJPA-811 > Project: OpenJPA > Issue Type: Bug > Affects Versions: 1.2.0, 2.0.0 > Reporter: Dinkar Rao > Assignee: Michael Dick > Fix For: 1.2.0, 2.0.0 > > Attachments: OPENJPA-811.patch > > > An entity has a field defined as follows: > @Column(nullable=false) > private Object nonNullableObject; > Using Oracle, it is possible to set the value of this column to null. OpenJPA will not complain, but will instead store whatever is returned by oracle.sql.BLOB.empty_lob(). > An exception should be thrown instead, because the field has been defined as non-nullable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.