1
Bugs and Issues / Re: Model transformation to DDL: multiplicity & NU
« on: January 27, 2010, 03:27:53 am »
Peter,
The transform template for the DDL attributes is :
Column
{
%TRANSFORM_CURRENT("type", "stereotype", "collection", "constant", "containment", "ordered", "static", "volatile")%
type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,attType)%%qt%
}
I'm no expert in DDL, but there doesn't appear to be any specific manipulation of the attLowerBound or attUpperBound properties, whereas in the XSD transform it contains these lines:
%if attLowerBound!=""%
Tag
{
name="minOccurs"
value=%qt%%attLowerBound=="*" ? "unbounded" : value%%qt%
}
%endIf%
%if attUpperBound!=""%
Tag
{
name="maxOccurs"
value=%qt%%attUpperBound=="*" ? "unbounded" : value%%qt%
}
%endIf%
It may be that you need to change the default code to do something explicitly as above.
Hope this helps.
Dan
The transform template for the DDL attributes is :
Column
{
%TRANSFORM_CURRENT("type", "stereotype", "collection", "constant", "containment", "ordered", "static", "volatile")%
type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,attType)%%qt%
}
I'm no expert in DDL, but there doesn't appear to be any specific manipulation of the attLowerBound or attUpperBound properties, whereas in the XSD transform it contains these lines:
%if attLowerBound!=""%
Tag
{
name="minOccurs"
value=%qt%%attLowerBound=="*" ? "unbounded" : value%%qt%
}
%endIf%
%if attUpperBound!=""%
Tag
{
name="maxOccurs"
value=%qt%%attUpperBound=="*" ? "unbounded" : value%%qt%
}
%endIf%
It may be that you need to change the default code to do something explicitly as above.
Hope this helps.
Dan