You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Dinkar Rao (JIRA)" <ji...@apache.org> on 2008/12/03 19:45:44 UTC
[jira] Created: (OPENJPA-811) With Oracle, OpenJPA allows setting
non-nullable field to null
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.
[jira] Assigned: (OPENJPA-811) With Oracle, OpenJPA allows setting
non-nullable field to null
Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Albert Lee reassigned OPENJPA-811:
----------------------------------
Assignee: Albert Lee
> 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: Albert Lee
> 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.
[jira] Updated: (OPENJPA-811) With Oracle, OpenJPA allows setting
non-nullable field to null
Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dick updated OPENJPA-811:
---------------------------------
Fix Version/s: (was: 1.2.0)
> 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.1, 1.3.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.
[jira] Updated: (OPENJPA-811) With Oracle, OpenJPA allows setting
non-nullable field to null
Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dick updated OPENJPA-811:
---------------------------------
Fix Version/s: 1.3.0
1.2.1
> 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.1, 1.3.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.
[jira] Reopened: (OPENJPA-811) With Oracle, OpenJPA allows setting
non-nullable field to null
Posted by "Michael Dick (JIRA)" <ji...@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.
[jira] Resolved: (OPENJPA-811) With Oracle, OpenJPA allows setting
non-nullable field to null
Posted by "Albert Lee (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Albert Lee resolved OPENJPA-811.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
2.0.0
> 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: Albert Lee
> Fix For: 2.0.0, 1.2.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.
[jira] Closed: (OPENJPA-811) With Oracle, OpenJPA allows setting
non-nullable field to null
Posted by "Michael Dick (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-811?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dick closed OPENJPA-811.
--------------------------------
Resolution: Fixed
> 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.1, 1.3.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.
[jira] Updated: (OPENJPA-811) With Oracle, OpenJPA allows setting
non-nullable field to null
Posted by "Dinkar Rao (JIRA)" <ji...@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.