Joined: Mon Feb 14, 2005 10:11 am Posts: 10 Location: Italy
|
Hi, I'm a new user of hibernate and I have to make a simple query but I encounter a problem.
I want to find documents with title that contains a string passed as a parameter.
This is my query....
s.createQuery("from Document d where d.title like %:searchInTitle%")
.setString("searchTitle",title)
.list();
Hibernate return me this error:
Parameter title does not exist as a named parameter in [from Document d where d.title like %:searchInTitle%]
Help me... thanks
_________________ Ing. Marco Rinaldi - Italy
|
|