Hibernate version: 3.0.5
Name and version of the database you are using: Oracle 9.2.0.4
JDK version: JDK 1.5.0_04
Operating System: Debian 3.1
I have an object (Person) that has a set of attributes. I also have a search form where you search Persons by their attributes. I'm also trying to build this into my HQL query builder class, so I can use things like Restrictions.like(). My question is, how can I search for a set of attributes within another set? I can't find anything in the org.hibernate.criterion.Restrictions or org.hibernate.criterion.Property API that would accomodate that.
If this doesn't work, I figure I'll have to loop through my criterion set and match up with the elements() function in my HQL, but when you pass in the field name to search on to the Restrictions methods, it won't wrap it in the elements() function for you. Has anyone else had to deal with these problems?
Many thanks,
Dustin
|