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: tri sur le descriminator
PostPosted: Fri Jun 16, 2006 7:35 am 
Newbie

Joined: Fri Jun 16, 2006 7:29 am
Posts: 1
j'utilise une table avec un discriminator , je voufrais faire un tri sur les objets de la table en utlisant comme cle de tri le descriminator

Avez une idee comment faire.

merci


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 25, 2006 10:46 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Salut,

Normalement, un tri se gère avec la clause "order-by" en SQL. Avec l'API Criteria d'Hibernate c'est la méthode addOrder() (http://www.hibernate.org/hib_docs/v3/re ... a-ordering) tu as essayé d'utiliser ça ? Quel est le problème ?

Et en HQL : http://www.hibernate.org/hib_docs/v3/re ... ryhql.html

Le tout est de savoir si Hibernate accepte d'ajouter la clause order by sur une colonne discriminator. Je vais regarder si c'est bien le cas.

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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.