[jira] Created: (OPENJPA-665) OpenJPA allows commit where fields with @Column(nullable=false) set to null

4 Messages Forum Options Options
Permalink
JIRA jira@apache.org
[jira] Created: (OPENJPA-665) OpenJPA allows commit where fields with @Column(nullable=false) set to null
Reply Threaded More
Print post
Permalink
OpenJPA allows commit where fields with @Column(nullable=false) set to null
----------------------------------------------------------------------------

                 Key: OPENJPA-665
                 URL: https://issues.apache.org/jira/browse/OPENJPA-665
             Project: OpenJPA
          Issue Type: Bug
          Components: jpa
            Reporter: Pinaki Poddar
            Assignee: Pinaki Poddar
             Fix For: 1.2.0


OpenJPA disallows setting of null values to basic fields that are not optional.
But it allows setting null values to basic fields whose column is set as nullable=false.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

JIRA jira@apache.org
[jira] Resolved: (OPENJPA-665) OpenJPA allows commit where fields with @Column(nullable=false) set to null
Reply Threaded More
Print post
Permalink

     [ https://issues.apache.org/jira/browse/OPENJPA-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pinaki Poddar resolved OPENJPA-665.
-----------------------------------

    Resolution: Fixed

> OpenJPA allows commit where fields with @Column(nullable=false) set to null
> ----------------------------------------------------------------------------
>
>                 Key: OPENJPA-665
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-665
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>             Fix For: 1.2.0
>
>
> OpenJPA disallows setting of null values to basic fields that are not optional.
> But it allows setting null values to basic fields whose column is set as nullable=false.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

JIRA jira@apache.org
[jira] Reopened: (OPENJPA-665) OpenJPA allows commit where fields with @Column(nullable=false) set to null
Reply Threaded More
Print post
Permalink

     [ https://issues.apache.org/jira/browse/OPENJPA-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dick reopened OPENJPA-665:
----------------------------------

      Assignee: Michael Dick  (was: Pinaki Poddar)

This change introduced a regression with LOBs which may not be set to null. I'm reopening the issue to address LOBs

> OpenJPA allows commit where fields with @Column(nullable=false) set to null
> ----------------------------------------------------------------------------
>
>                 Key: OPENJPA-665
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-665
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>            Reporter: Pinaki Poddar
>            Assignee: Michael Dick
>             Fix For: 1.2.0
>
>
> OpenJPA disallows setting of null values to basic fields that are not optional.
> But it allows setting null values to basic fields whose column is set as nullable=false.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

JIRA jira@apache.org
[jira] Resolved: (OPENJPA-665) OpenJPA allows commit where fields with @Column(nullable=false) set to null
Reply Threaded More
Print post
Permalink

     [ https://issues.apache.org/jira/browse/OPENJPA-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Dick resolved OPENJPA-665.
----------------------------------

    Resolution: Fixed
      Assignee: Pinaki Poddar  (was: Michael Dick)

Sorry, I didn't sync up this morning. Pinaki has already fixed this issue in trunk with rev 682610.

> OpenJPA allows commit where fields with @Column(nullable=false) set to null
> ----------------------------------------------------------------------------
>
>                 Key: OPENJPA-665
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-665
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jpa
>            Reporter: Pinaki Poddar
>            Assignee: Pinaki Poddar
>             Fix For: 1.2.0
>
>
> OpenJPA disallows setting of null values to basic fields that are not optional.
> But it allows setting null values to basic fields whose column is set as nullable=false.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.