Reflexive and mandatory reference

2008年04月02日 星期三 15:18

我使用的是 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)才能通過。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章