• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set Criteria for my query

kaleeswaran muthusamy
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I just started working in hibernate.
I have doubt in passing the object in criteria.
For example say, I have Product Model class.inside the Set<Bundle> bundles object.by passing the bundle object i want to get list of product class.
I passed like this,
criteria.add(Restrictions.eq("bundles", bundle));
product = (List<product>) criteria.list();

but i'm getting exception like this:

SEVERE: Servlet.service() for servlet [services] in context with path [/RJVServicesWeb] threw exception [Request processing failed; nested exception is org.hibernate.QueryTimeoutException: could not execute query] with root cause
java.sql.SQLException: ORA-01008: not all variables bound.

can any one help into this issue...


Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!