Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-284
Here is an overview of the issue:
---------------------------------------------------------------------
Key: CAY-284
Summary: Allow for mix of null and non null attributes for compound FK relationships
Type: Improvement
Status: Assigned
Priority: Critical
Project: Cayenne
Components:
Cayenne Core Library
CayenneModeler GUI
Versions:
1.1
Assignee: Andrus Adamchik
Reporter: Derek Rendall
Created: Mon, 28 Feb 2005 12:07 AM
Updated: Mon, 28 Feb 2005 12:07 AM
Environment: DB2 8.1.4 WinXP
Description:
In the DbRelationship class, the targetPkSnapshotWithSrcSnapshot method throws an exception if there is a mix of null and non null attributes for the FK. While thats a good idea most of the time, I have cases where I need it to be a valid situation (multiple links to the same compound PK table, some nullable, some not, where the common fields are consolidated) - returning null if any of the attributes are null. Could an override flag be added (say in the modeller) that "loosens" the restriction - i.e. so that if any are null, then null is returned rather than an exception?
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://objectstyle.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Mon Feb 28 2005 - 00:09:18 EST