Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: basalt on April 23, 2008, 08:05:16 pm
-
Hi all.
There is a nice sentense in the help file:
"In the column definition, you cannot assign a value to the NotNull, PrimaryKey or Unique properties.
"
But how can i mark a column in the transformation as PrimaryKey?
thx
george
-
The sentence in help means, that you cannot do
notNull="something"
, but if you want a column to be not null, just use notnull
.
Example:
Column
{
name="IAmNotNull"
notnull
}
I tried "primaryKey" flag to make a column primary key, but that doesn't work. Anyway you can use:
Table
{
PrimaryKey
{
Column
{
name="id"
type=.......
}
}
}
-
Hi Ondrej Kolenaty
Thanks for the answer, you example
work well.
thx
george