You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Tore Halset (JIRA)" <ji...@apache.org> on 2010/01/07 15:41:31 UTC
[jira] Commented: (CAY-1359) SetAllowNullToDb is not generated for
fields that are not known to Cayenne
[ 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.