我使用的是 PowerDesigner 12
在添加外健的時候有問題,,
我是給表自身添加外健,一個無限分類表
表:Class 列:Id, ParentId, Name
我要給 ParentId 做爲 Id 的外健,
但是在生成數據庫的時候有如下錯誤:
-----------------------------------------------------
Generation aborted due to errors detected during the verification of the model.
------------------------------------------------------------
在 Result List 中 Check 項 如下:
Reflexive and mandatory reference
一個表中的主鍵(parent)指向這個表中的另一個字段(child),child必須去掉not null(mandatory)才能通過。