Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Hibernate怎样处理多对多关系中关系表有主键的问题
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
NHibernate  
View profile   Translate to Translated (View Original)
 More options Aug 9 2005, 10:02 am
From: "NHibernate" <kefengzh...@gmail.com>
Date: Tue, 09 Aug 2005 07:02:15 -0700
Local: Tues, Aug 9 2005 10:02 am
Subject: Hibernate怎样处理多对多关系中关系表有主键的问题
两张表
是多对多的
分别为A
B
中间关系表为AtoB
一般情况下,AtoB是没有主键的
但怎样处理AtoB有主键的情况呢?

也就是保存这两张表时
现在是这样的语句:insert into AtoB (A_id, B_id) values (?, ?)
怎样实现:insert into AtoB (AtoB_id,A_id, B_id) values (?,?, ?)


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google