Hi,
What I would like to do is create an attribute for a Foreign Key within the target end of an association. I can see how the DDL template works, but it is creating columns, rather than attributes - I think this makes a difference. I am trying the following code, but the Attribute tag is unexpected when I run the transform.
Target
{
%TRANSFORM_REFERENCE("XSDClass",connectorDestElemGUID)%
%TRANSFORM_CURRENT("Target","Direction", "Multiplicity","role", "Constraint")%
Multiplicity=%qt%$destMult%qt%
role=%qt%%CONVERT_NAME(connectorDestElemName,"Underscored", "Pascal Case")%%qt%
Constraint=""
Attribute
{
name="TESTID"
type="xs:integer"
}
}
Can I include an attribute this way, if so how does it work in a template?
Thanks
Dan