[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate and @CollectionId
alexg79
do-not-reply at jboss.com
Thu Jan 25 10:01:19 EST 2007
Could someone help me understand why @CollectionId is required for multiple simultaneous bag fetching? All it does is create an invisible primary key for the collection. I understand this in the case of unidirectional relationships, but if I have a bidirectional relationship, what purpose does this serve, since the referenced entity already has a primary key? Why can't hibernate use the target entity's existing primary key?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006374#4006374
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006374
More information about the jboss-user
mailing list