openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dinkar Rao (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-811) With Oracle, OpenJPA allows setting non-nullable field to null
Date Wed, 03 Dec 2008 18:45:44 GMT
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


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.


Mime
View raw message