Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 99243 invoked from network); 3 Dec 2008 18:48:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Dec 2008 18:48:05 -0000 Received: (qmail 6781 invoked by uid 500); 3 Dec 2008 18:48:16 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 6749 invoked by uid 500); 3 Dec 2008 18:48:16 -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 6738 invoked by uid 99); 3 Dec 2008 18:48:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2008 10:48:16 -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; Wed, 03 Dec 2008 18:46:56 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 350B9234C2A3 for ; Wed, 3 Dec 2008 10:47:44 -0800 (PST) Message-ID: <1053961471.1228330064202.JavaMail.jira@brutus> Date: Wed, 3 Dec 2008 10:47:44 -0800 (PST) From: "Dinkar Rao (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Updated: (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 ] Dinkar Rao updated OPENJPA-811: ------------------------------- Attachment: OPENJPA-811.patch Submitting patch provided by Pinaki. > 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 > 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.