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("");