-->
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.  [ 4 posts ] 
Author Message
 Post subject: Criteria API generating wrong query
PostPosted: Wed Aug 10, 2011 4:44 pm 
Newbie

Joined: Wed Dec 16, 2009 9:55 am
Posts: 6
hi
a question about criteria api

the following code :
Code:
Path<Long> id = root.get(Battery_.Id);
return builder.in(id).in((Object[]) ids).not();

generates the following query
Code:
select generatedAlias0 from Battery as generatedAlias0 where generatedAlias0.Id in () not in (5183, 6036, 2270)

which is not formatted properly
am i building the predicate incorrectly ?


Thanks,
Shay


Top
 Profile  
 
 Post subject: Re: Criteria API generating wrong query
PostPosted: Fri Aug 12, 2011 9:57 am 
Newbie

Joined: Wed Dec 16, 2009 9:55 am
Posts: 6
bump


Top
 Profile  
 
 Post subject: Re: Criteria API generating wrong query
PostPosted: Fri Aug 12, 2011 2:05 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
seems a bug. which version? please check the latest version, and if it's still not working please create an issue on JIRA attaching a test case.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject: Re: Criteria API generating wrong query
PostPosted: Fri Aug 12, 2011 4:08 pm 
Newbie

Joined: Wed Dec 16, 2009 9:55 am
Posts: 6
Thanks Sanne,

an issue has been created at https://hibernate.onjira.com/browse/HHH-6571

Thanks,
Shay


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.