Hi,
In a UML class, I can set the multiplicity lowe bound to 0, which means to me that the attribute is optional, or 1 (or more), which would mean it is mandatory.
When I transform the package to DDL, the attributes come through stereotyped as columns, but all of them have Not null set to No. The only columns which get not null set to Yes are the primary keys which the transform creates.
Conversely, where a column is introduced to carry the foreign key for an association, it is often given Not Null = Yes, even if the association has a multiplicity lower bound of 0.
It's the "often" that has got me worried - in a given model, some of these optional associations get foreign key columns that can be null, others can't be.
Any thoughts as to why this is?