-->
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: QueryException ?
PostPosted: Thu Jan 15, 2004 1:48 am 
Regular
Regular

Joined: Thu Dec 25, 2003 12:33 am
Posts: 58
Location: Campina Grande, Brasil
I'm trying to performa a query this way:
Code:

crit =
         crit.add(
            Expression.disjunction().add(
               Expression.like("codigo", "%" + codigo + "%")).add(
               Expression.in(
                  "id_proprietario",
                  id_prop(proprietario, session, log))));[


where id_prop(proprietario, session, log) returns a java.util.Collection of Objects (o ttype Long).
When doing the crit.list, it returns me a QueryException. I'm pretty sure the collection is returned with the right number of elements in it(I'm logging it in debug level). The first part of the query also works fine.

What did I forget?

Thanks in advance[/code]

_________________
Ot


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 15, 2004 9:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well, can you probably post the exception stacktrace?


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.