[Entity Modeler] Flatten doesn't copy all properties over
---------------------------------------------------------
Key: WOL-368
URL: http://issues.objectstyle.org/jira/browse/WOL-368
Project: WOProject/WOLips
Issue Type: Bug
Components: wolips
Reporter: Alan Zebchuk
Priority: Minor
When you flatten a relationship, it doesn't copy all the properties over, as a result you will get errors when trying to access the flattened attribute.
For example. want to flatten toMerchantAccount.createdBy
Where createdBy is defined as the following in the plist:
{
name = createdBy;
prototypeName = createdBy;
},
When I flatten it I get the following:
{
columnName = createdBy;
definition = toMerchantAccount.createdBy;
name = createdBy;
},
However, it should flatten the same way as EOModeler would (i.e. by setting the columnName to "" and copying all the attributes from the prototype:
{
allowsNull = Y;
columnName = "";
definition = toMerchantAccount.createdBy;
externalType = varchar;
name = createdBy;
serverTimeZone = Canada/Eastern;
valueClassName = NSString;
width = 64;
},
Although I can see a problem with this if using different prototypes, so maybe it just needs to set the prototypeName on the flattened attribute and set the columnName to "" (Not sure if this works or not)
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
This archive was generated by hypermail 2.0.0 : Tue Jan 23 2007 - 13:54:54 EST