-->
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: Hibernate SQL error, when upgrade to 2.0x to 3.0x
PostPosted: Fri Nov 04, 2005 2:10 am 
Query q = sess.createQuery(
"select wo, rtr "
+ "from com.waterfind.core.WaterOffer wo, "
+ " com.waterfind.core.RegionTradingRelationship rtr "
+ "where rtr.toRegion.name = ? "
+ " and rtr.fromRegion = wo.sellingRegion "
+ " and (rtr.suspended is null or rtr.suspended = false) "
+ " and wo.buyer is null "
+ " and (wo.seller.userName != ? or wo.seller.userName is null) "
+ " and (rtr.sale = wo.sale or (rtr.sale is null and wo.sale) "
+ " or (wo.sale is null and rtr.sale)) "
+ " and (wo.deleted is null or wo.deleted = false) "
+ " and wo.startIrrigationSeason = ? "
+ " order by " + searchKey);
q.setString(0, regionName);
q.setString(1, userId);
q.setString(2, String.valueOf(StartYear));

Iterator iter = q.iterate();

Hello, whats wrong with this sql, it did work for hibernate 2.0x but now i change to version 3.0x and gives me an org.hibernate.hql.ast.QuerySyntaxError: unexpected AST node: .


Top
  
 
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.