-->
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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate tool :: how to generate List instead of Set
PostPosted: Tue Apr 19, 2011 6:39 am 
Newbie

Joined: Tue Apr 19, 2011 6:33 am
Posts: 1
Hi,

I am using hibernate tools ( JBossTools-3.0.3 ) and generating POJOs and mapping from it.
It generates Set for the relational mappings in POJO's but i want to have List.

Any help please????


Top
 Profile  
 
 Post subject: Re: Hibernate tool :: how to generate List instead of Set
PostPosted: Wed Apr 20, 2011 5:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
To have a list you an index field which we dont have a means to recognize.

Thus Set is the proper/correct mapping.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Re: Hibernate tool :: how to generate List instead of Set
PostPosted: Wed Apr 20, 2011 7:55 pm 
Newbie

Joined: Tue Apr 19, 2011 2:37 pm
Posts: 10
hi max

I have exactly the same requirment where i want List instead of a Set.

I am just curious why is hibernate designed in such a way that we need to know the INDEX for list and not for Set?

In our project we use List all over the place and now we are migrating to hibernate. So to convert all List to set is a pain.

thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.