-->
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: hbm2java and sets with order-by
PostPosted: Sun Sep 04, 2011 1:09 pm 
Newbie

Joined: Sat Sep 03, 2011 10:16 am
Posts: 10
Hi,

Why is it when I add an order-by attribute to a set in my mapping XML files hbm2java does not generate a SortedSet with a LinkedHashSet implementation?

I would assume that using an order-by should generate a LinkedHashSet and a sort attribute would generate a TreeHashSet.


Top
 Profile  
 
 Post subject: Re: hbm2java and sets with order-by
PostPosted: Sun Sep 11, 2011 1:00 am 
Newbie

Joined: Sat Sep 03, 2011 10:16 am
Posts: 10
One more problem, for <list> it generates the following code:
Collection<T> list = new ArrayList<T>();

Why does it use Collection as the static type? It should use List<T>.


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.