0 Replies Latest reply on Jan 25, 2007 10:01 AM by Alex Grönholm

    Hibernate and @CollectionId

    Alex Grönholm Novice

      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?