-->
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: unexpected AST node: {vector} using (:param is null)
PostPosted: Wed Jul 07, 2010 11:52 pm 
Newbie

Joined: Mon Feb 01, 2010 5:12 am
Posts: 4
I am testing hibernate query with a simple filter where I want to select records based on whether a filter is being specified or not:

query = "select u from Unit u inner join u.rec rec where ( (:keywords is null) or rec.keyword.keyword in (:keywords) )"

I get this error when :keywords is NOT null:

org.springframework.orm.hibernate3.HibernateQueryException: unexpected AST node: {vector} [select u from com.zaztz.model.Unit u inner join u.rec rec where ( (:keywords0_, :keywords1_ is null) or rec.keyword.keyword in (:keywords0_, :keywords1_) )];

Is there any other function on params I can use that will check this properly?


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.