Topic: 【EJB】复合Primary Key的问题

  Print this page

1.【EJB】复合Primary Key的问题 Copy to clipboard
Posted by: maplej
Posted on: 2004-05-13 04:05

比如在Oracle中的Table有Col1、Col2、Col3,一共3列。数据库表的Primary Key定义为Col1+Col3,那么在EJB中,Primary Key怎么表现呢?CMP的Key可以绑定这样的组合吗?

2.Re:【EJB】复合Primary Key的问题 [Re: maplej] Copy to clipboard
Posted by: stemart
Posted on: 2004-05-14 12:31

建一个view,pk是col1+col3

3.Re:【EJB】复合Primary Key的问题 [Re: maplej] Copy to clipboard
Posted by: slacker
Posted on: 2004-05-15 10:54

Yes, using combination key.
You can check EJB2.0 specification at item 10.8.2.

slacker.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923