-->
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: sql-query probleme
PostPosted: Fri Jul 18, 2008 7:39 am 
Newbie

Joined: Fri Jul 18, 2008 7:31 am
Posts: 1
Bonjour,
J'ai un petit problème problème avec NHibernante que j'utilise dans une application asp.NET1.1

Je dois exécuter la requete suivante :
SELECT {I.*}, (IsNull(vw_UNGASS_Recommended_Indicators.is_ungass,10) * isNull(I.OrderBy, 100)) OrderBy
FROM TBLSYS_INDICATOR {I} Inner join TBLSYS_Translation T ON T.ObjectId = I.IndicatorID And T.ResourceType = 'Indicator' LEFT OUTER JOIN vw_UNGASS_Recommended_Indicators ONI.IndicatorID=vw_UNGASS_Recommended_Indicators.IndicatorID WHERE T.LanguageId = :languageId ANDI.IsDeleted = 0 AND (FREETEXT(Value,:name) OR I.IndicatorId = :indicatorId)ORDER BY OrderBy, I.IndicatorNM ASC

Cette requete se touve dans mon fichier de mapping hbm.xml dans un balise <sql-query ...></sql-query>

Le fait est que je dois récupérer le champ OrderBy pour pouvoir effectuer un tri par la suite, ce champ OrderBy n'est pas un champ de la table, je ne peux donc pas le mapper avec une propriété car dans tous les autres cas je n'aurrais pas ce champs dans mes requêtes.

Cela est-il possible, si oui, comment,

Merci bcp,
Ren


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.