Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set Criteria for my query  RSS feed

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


It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!