-->
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 parsing problem
PostPosted: Fri Oct 14, 2005 10:44 am 
Newbie

Joined: Fri Apr 15, 2005 8:08 am
Posts: 6
I tried to execute two hqls as the following in the same session:

Select p from TblProduct p where p.id.TblTitle.TitleId=:id and p.id.ProductId=:pid

update TblProduct set TblCubeLayout=:layout where id.TblTitle.TitleId=:id and id.ProductId=:pid

I got the the hql execute exception. The output parsed hql is as the following:

'select tblproduct0_.TitleId as TitleId0_, tblproduct0_.ProductId as ProductId0_, ... , from dbo.tblProduct tblproduct0_ where tblproduct0_.TitleId=? and tblproduct0_.ProductId=?'

'update dbo.tblProduct set StockLocationId=? where tblproduct0_.TitleId=? and tblproduct0_.ProductId=?'

I am very confused. As you can see, I didn't define an alias name in the update hql because there is a alias name problem in update hql which I posted in http://forum.hibernate.org/viewtopic.php?t=948837. However, it looks the hibernate keep the alias name from the first hql. I met this kind of problem sever times.

Anybody can help? Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 14, 2005 10:58 am 
Beginner
Beginner

Joined: Thu Aug 11, 2005 5:19 am
Posts: 29
Got the same problem. Figured out it was a bug in Hibernate.

Downloaded the Hibernate 3.1 RC1 - problem solved ;)

Good luck!


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.