I've just had a little play with the transformation.
You should get something like what you want by changing the Attribute template to the following.
%if attClassifierGUID != ""%
ForeignKey
{
%TRANSFORM_REFERENCE("General",attGUID)%
Source
{
%TRANSFORM_REFERENCE("Table",classGUID)%
name=%qt%%CONVERT_NAME(attName, "Camel Case","Pascal Case")%%qt%
Column
{
name=%qt%%attName%ID%qt%
type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,"Integer")%%qt%
}
}
Target
{
%TRANSFORM_REFERENCE("Table",attClassifierGUID)%
Column
{
name=%qt%%CONVERT_NAME(attType, "Pascal Case","Camel Case")%ID%qt%
type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,"Integer")%%qt%
}
}
}
%else%
Column
{
%TRANSFORM_CURRENT("type", "stereotype", "collection", "constant", "containment", "ordered", "static", "volatile")%
type=%qt%%CONVERT_TYPE(genOptDefaultDatabase,attType)%%qt%
}
%endIf%
Feel free to modify it from there.