-->
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: HQL erreur chez SQL Server: sur "cross join"
PostPosted: Thu Jul 14, 2005 3:35 am 
Regular
Regular

Joined: Sat Apr 10, 2004 8:39 pm
Posts: 84
sur SQL Server

erreur: SQL
from a, b join a ..................

il faut:
from a cross join b join a.........

le SQLServerDialect ne peut pas changer " from a, b join a .................."

a "from a cross join b join a .........." ?

Qui peut m'aide ? merci.


Code:
            hql.append(" select distinct accessRequest from AccessRequest accessRequest ");

            hql.append(", UserDetails userDetails ");
//SQL Server   hql.append(" cross join UserDetails userDetails ");
//error         hql.append(" join accessRequest.userDetails userDetails");

            
            hql.append(" join userDetails.setOfUserGroupRelation userGroupRelation ");
            hql.append(" join userGroupRelation.uniformGroup userGroup ");
            hql.append(" join userDetails.setOfAuthorities authorities ");
            hql.append(" join authorities.id.roleDefiniens userRole ");

            hql.append(" join accessRequest.setOfRequestXfileBorrow borrow ");
            hql.append(" join borrow.xfile xfileBorrow ");
            hql.append(" join xfileBorrow.xource xourceBorrow ");
            hql.append(" join xourceBorrow.setOfXourceGroupRelation xourceBorrowGroupRelation ");
            hql.append(" join xourceBorrowGroupRelation.uniformGroup xourceBorrowGroup ");

            hql.append(" join borrow.accessRuleTache borrowTache ");
            hql.append(" join borrowTache.roleDefiniens borrowTacheRole ");
//            hql.append(" join accessRequest.setOfRequestXfileDestory destory ");
//            hql.append(" join accessRequest.setOfRequestXfileSend send ");
            hql.append(" where (userDetails.relId=:relId) ");
            hql.append(" and (userGroup.relId=xourceBorrowGroup.relId) ");
            hql.append(" and (userRole.symbol=borrowTacheRole) ");
            hql.append("");

_________________
I am the creatxr of world.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 14, 2005 5:32 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
cross n'est pas un mot clée de HQL, tu n'as pas le droit de l'utiliser

_________________
Emmanuel


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.