-->
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: Hibernate3.2.5.ga 'with clause' issue
PostPosted: Fri Aug 03, 2007 4:21 pm 
Newbie

Joined: Wed Oct 18, 2006 7:29 am
Posts: 11
I tried to upgrade the hibernate jars in my application
Old Hibernate Version: 3.2.1.ga
Upgraded Hibernate Version:
Package Version Release date Category
===============|===========|================================
Hibernate Core | 3.2.5.ga | 31.07.2007 Production
-------------------|-----------|---------------------------------
Hibernate | 3.3.0 GA | 20.03.2007 Production
Annotations | |
---------------|-----------|---------------------------------


And i get the exception,
org.hibernate.hql.ast.QuerySyntaxException: with-clause referenced two different from-clause elements

for this HQL
select new com.wsi.mm.model.directship.vo.ItemDirectShipSearchResultVO
(item.id, item.description, item.style.id, directShipItemAttribute )
from com.wsi.mm.model.item.ItemImpl item join item.department department
join department.group bannerGroup with bannerGroup.id=:bannerId
left outer join item.directShipItemAttributes directShipItemAttribute with
directShipItemAttribute.class=DirectShipItemAttribute
and directShipItemAttribute.banner=:directShipItemAttribute_banner
and directShipItemAttribute.supplier=:directShipItemAttribute_supplier
join item.itemSuppliers itemSupplier with itemSupplier.class = DirectShipItemSupplier
and itemSupplier.supplier.id=:itemSupplier_supplier_id
where ( item.itemLevel = item.transactionLevel and item.statusCode = 'A'
and (item.id in (select iim2.id from com.wsi.mm.model.item.ItemImpl iim2 where iim2.packFlag = 1)
or item.id in (select iim3.id from com.wsi.mm.model.item.ItemImpl iim3 where iim3.class = SkuImpl ))
and item.department.id=:item_department_id )

Does anyone knows what's wrong or need to change, as this works fine with older version of hibernate.

Thanks


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.