-->
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.  [ 4 posts ] 
Author Message
 Post subject: order-by in <set name=""> in mapping not wor
PostPosted: Thu Mar 05, 2009 3:28 am 
Newbie

Joined: Thu Mar 05, 2009 2:58 am
Posts: 4
Hibernate version: 3.0.5

In my.hbm file I am fetching a table as a set

<set name="someSet" table="someTable" lazy="false" inverse="true"
order-by="columnName desc" cascade="all-delete-orphan">
<key>
....
</key>
<one-to-many class="package.className" />
</set>

The order-by clause is not working

What could be the reason?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 05, 2009 4:37 am 
Beginner
Beginner

Joined: Wed Nov 19, 2008 6:39 am
Posts: 44
Location: Mumbai, India
CAN YOU POST ERROR STACK?

_________________
Thx,
Murugesan.
Web: http://www.murugesanpitchandi.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 05, 2009 4:40 am 
Beginner
Beginner

Joined: Wed Nov 19, 2008 6:39 am
Posts: 44
Location: Mumbai, India
CAN YOU POST ERROR STACK?

_________________
Thx,
Murugesan.
Web: http://www.murugesanpitchandi.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 05, 2009 5:01 am 
Newbie

Joined: Thu Mar 05, 2009 2:58 am
Posts: 4
Lets use this thread. Its the same post

http://forum.hibernate.org/viewtopic.php?t=995328


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