-->
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: HQL order by not working - wrong order ?
PostPosted: Sun Jun 13, 2010 5:42 am 
Beginner
Beginner

Joined: Mon Aug 23, 2004 12:44 am
Posts: 25
I'm using hibernate 3.3.2.

I've got a very simple HQL that results in the following query being executed by Hibernate:
Code:
    select
        undimdefim0_.CODE as CODE20_
    from
        TAX_UD_DEF undimdefim0_
    order by
        undimdefim0_.CODE asc


However the results are returned in the wrong order, even though I've got the order by:
Code:
Afzender
Categorie
IscedStudiegebied
1Xyz


The same query executed in Oracle SQL Developer does return the rows in the right order:
Code:
1Xyz
Afzender
Categorie
IscedStudiegebied


Why is this happening ? Why is the sort order different although the exact same query is executed ?
Am I doeing something wrong ?

Any advice would be welcome.
Thanks,
EDH


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.