cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tore Halset (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAY-1359) SetAllowNullToDb is not generated for fields that are not known to Cayenne
Date Thu, 07 Jan 2010 14:41:31 GMT

    [ https://issues.apache.org/jira/browse/CAY-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797640#action_12797640
] 

Tore Halset commented on CAY-1359:
----------------------------------

DropColumnToDb has a getColumn() that return the DbAttribute. Any other suggestions?

> SetAllowNullToDb is not generated for fields that are not known to Cayenne
> --------------------------------------------------------------------------
>
>                 Key: CAY-1359
>                 URL: https://issues.apache.org/jira/browse/CAY-1359
>             Project: Cayenne
>          Issue Type: Bug
>            Reporter: Øyvind Harboe
>
> If the database contains a field which is not in the model and this field does not allow
null, then no SetAlloNullToDb token is generated.
> This causes a problem when I try to retire a complusory field.
> I don't know what the solution might be, but perhaps it should be possible to query DropColumnToDb
about the properties of the column in question.
> That way I could make an informed decision on whether to just leave an obsolete column
alone or not.

-- 
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