Together 6.1的composition关联好象不起作用?????

IPOz 2003-07-17 03:05:52
在UML中,如果两个类建立了composition关联,那么client端类的生命将由supplier端决定。映射到数据库中则是supplier表的OID将作为client表的主键。

但我用together产生MS SQL 2000表时,却不能将supplier表的主键作为client表的主键  ??!!


regards!
...全文
32 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
IPOz 2003-07-17
  • 打赏
  • 举报
回复
而且int型属性都会自动加个identity :((((

CREATE TABLE "Department"
(
"depart_id" int identity,
"depart_name" sysname,
CONSTRAINT "PK_Department" PRIMARY KEY ("depart_id")
)


CREATE TABLE "Employee"
(
"emp_id" int identity,
"emp_sex" int identity,
"emp_name" sysname,
"depart_id" int identity,
CONSTRAINT "PK_Employee" PRIMARY KEY ("emp_id")
)


who can help me out?

51,408

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧