Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set Criteria for my query  RSS feed

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

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


Thanks,

Kalees
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!