Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: James Rivera   on Mar 22 In Java Category.

  
Question Answered By: Ora Hanson   on Mar 22

Thank you for your answers. I have more than 30 criterion to search  and this is only one of them!
I have to use criteria  API. So if you now the right criterion to use, let me know.

I have used this code:

DetachedCriteria criteria = DetachedCriteria.forClass(Document.class);
Criterion tagCriterion = Restrictions.in("tags",new String[] {"TAG1"});
criteria.add( tagCriterion );

this code throws an exception:

could not execute query;
nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
...
No value specified for parameter 1

Any help?

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Hibernate Criteria question Or get search suggestion and latest updates.


Tagged: