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)才能通过。

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