-->
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.  [ 1 post ] 
Author Message
 Post subject: using the 'map' property
PostPosted: Fri Jul 14, 2006 4:04 am 
Senior
Senior

Joined: Sun Jun 11, 2006 10:41 am
Posts: 164
Hi all,
I would like to model a LIST-ITEMS mapping (one-to-many), but I don't want to use a 'set' because I cannot reference the items by their ID (I can only enumerate the set...). However, I cannot use the 'map' property either because it does not have a one-to-many feature.
What is the solution to this problem?

To clarify, I have List and Item classes, LIST and ITEM tables, and I would simply like to do sth like:
Code:
myitem = mylist.getItems().get("itemA")

Thanks...

Hibernate version:
3.1
Name and version of the database you are using:
sql server 2000 sp3


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

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.