Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java EE 综合讨论区
打印话题 寄给朋友 订阅主题 |
作者 | Re:使用jbuilder+weblogic开发cmp一对一的关联太难!!! [Re:zbljava] |
zbljava
发贴: 13 积分: 0 |
于 2003-10-25 20:56
但是使用many to one 则没有问题,真是奇怪啊! one to one时的文件如下: weblogic-cmp-extras.xml <weblogic-rdbms-relation> <relation-name>orderlineitems-products</relation-name> <weblogic-relationship-role> <relationship-role-name>ProductsRelationshipRole</relationship-role-name> <column-map> <foreign-key-column>PRODUCTID</foreign-key-column> <key-column>PRODUCTID</key-column> </column-map> <relationship-role-map> <foreign-key-table>PRODUCTS</foreign-key-table> <primary-key-table>ORDERLINEITEMS</primary-key-table> <column-map> <foreign-key-column>PRODUCTID</foreign-key-column> <key-column>PRODUCTID</key-column> </column-map> </relationship-role-map> </weblogic-relationship-role> </weblogic-rdbms-relation> weblogic-cmp-rdbms-jar.xml <weblogic-rdbms-relation> <relation-name>orderlineitems-products</relation-name> <weblogic-relationship-role> <relationship-role-name>ProductsRelationshipRole</relationship-role-name> <relationship-role-map> <foreign-key-table>PRODUCTS</foreign-key-table> <primary-key-table>ORDERLINEITEMS</primary-key-table> <column-map> <foreign-key-column>PRODUCTID</foreign-key-column> <key-column>PRODUCTID</key-column> </column-map> </relationship-role-map> </weblogic-relationship-role> </weblogic-rdbms-relation> many to one 时的文件如下: weblogic-cmp-extras.xml <weblogic-rdbms-relation> <relation-name>orderlineitems-products</relation-name> <weblogic-relationship-role> <relationship-role-name>OrderlineitemsRelationshipRole</relationship-role-name> <column-map> <foreign-key-column>PRODUCTID</foreign-key-column> <key-column>PRODUCTID</key-column> </column-map> <relationship-role-map> <foreign-key-table>ORDERLINEITEMS</foreign-key-table> <primary-key-table>PRODUCTS</primary-key-table> <column-map> <foreign-key-column>PRODUCTID</foreign-key-column> <key-column>PRODUCTID</key-column> </column-map> </relationship-role-map> </weblogic-relationship-role> </weblogic-rdbms-relation> weblogic-cmp-rdbms-jar.xml <weblogic-rdbms-relation> <relation-name>orderlineitems-products</relation-name> <weblogic-relationship-role> <relationship-role-name>OrderlineitemsRelationshipRole</relationship-role-name> <relationship-role-map> <foreign-key-table>ORDERLINEITEMS</foreign-key-table> <primary-key-table>PRODUCTS</primary-key-table> <column-map> <foreign-key-column>PRODUCTID</foreign-key-column> <key-column>PRODUCTID</key-column> </column-map> </relationship-role-map> </weblogic-relationship-role> </weblogic-rdbms-relation> 高手救命啊 我不知道primary-key-table 和 foreign-key-table 有什么作用? 宏天企业版(JAVA)OA开源平台 |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
5282 | 使用jbuilder+weblogic开发cmp一对一的关联太难!!! | zbljava | 435 | 2003-10-25 20:47 |
4556 | Re:使用jbuilder+weblogic开发cmp一对一的关联太难!!! | zbljava | 3144 | 2003-10-25 20:56 |
4483 | Re:使用jbuilder+weblogic开发cmp一对一的关联太难!!! | chenyajun5 | 69 | 2003-10-25 22:59 |
4431 | Re:使用jbuilder+weblogic开发cmp一对一的关联太难!!! | zbljava | 998 | 2003-10-28 21:13 |
4203 | Re:使用jbuilder+weblogic开发cmp一对一的关联太难!!! | whoami0967 | 127 | 2003-10-29 18:52 |
4438 | Re:使用jbuilder+weblogic开发cmp一对一的关联太难!!! | zbljava | 6 | 2003-11-03 22:58 |
4226 | Re:使用jbuilder+weblogic开发cmp一对一的关联太难!!! | whoami0967 | 8 | 2003-11-05 11:34 |
已读帖子 新的帖子 被删除的帖子 |
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 |