-->
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: List collections without indexed columns
PostPosted: Mon Jan 12, 2004 3:09 pm 
Beginner
Beginner

Joined: Fri Nov 28, 2003 11:21 am
Posts: 49
Location: Buenos Aires, Argentina
Is it possible to map ,in a subclass, a list collection if the table has no indexes.
Is it possible to use the primary key like an index?

I ve read in the reference something about idbags,but i cant understand how do they work.

The xml looks like this

<list name="suplementos" lazy="false" cascade="all" inverse="true">
<key column="P_IdSuplemento"/>
<index column = "P_IdSuplemento" type ="int" />
<one-to-many class="Productos.Producto"/>
</list>

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2004 3:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This will not work. Use a bag.


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.