-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: doubt in idbag example page 213
PostPosted: Mon May 30, 2005 9:14 am 
Regular
Regular

Joined: Thu Apr 14, 2005 2:15 pm
Posts: 66
I have a question about this example.
The mapping shows that there is a column ITEM_IMAGE_ID, to store the primary key of the table. But, there isn't a property in the class to store this value. Is this right? How can I refer to an item of this collection, without knowing the pk value in the class?

Code:
<idbag name="images" lazy="true" table="ITEM_IMAGE">
<collection-id type="long" column="ITEM_IMAGE_ID">
<generator class="sequence"/>
</collection-id>
<key column="ITEM_ID"/>
<element type="string" column="FILENAME" not-null="true"/>
</idbag>


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 30, 2005 10:05 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
That doesn't make it wrong. Read the section again, the documentation or ask in the regular user forum. Then you'll understand idbag.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.