You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Michael Dick (JIRA)" <ji...@apache.org> on 2009/01/27 21:19:02 UTC

[jira] Updated: (OPENJPA-765) Check for insertable or updateable before checking value for null

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

Michael Dick updated OPENJPA-765:
---------------------------------

    Affects Version/s: 1.3.0
                       1.2.1
        Fix Version/s: 2.0.0
                       1.3.0
                       1.2.1

> Check for insertable or updateable before checking value for null
> -----------------------------------------------------------------
>
>                 Key: OPENJPA-765
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-765
>             Project: OpenJPA
>          Issue Type: Sub-task
>    Affects Versions: 1.2.1, 1.3.0, 2.0.0-M1
>            Reporter: Michael Dick
>            Assignee: Michael Dick
>             Fix For: 1.2.1, 1.3.0, 2.0.0-M1, 2.0.0
>
>
> The fix for OPENJPA-665 exposed another issue with checking for null. If the entity contains a "read-only" attribute (insertable=false, updatable=false) should we also check whether the value is null? 
> A practical use case for this is a Date attribute which is automatically generated by the database, ie 
> @Column(insertable=false, updatable=false, nullable=false, columnDefinition="LAST_UPD DEFAULT CURRENT_DATE")
> private Date lastUpdated;
> Before the fix for OPENJPA-665 such an attribute would not be checked for null. 

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