-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Searching Collections in Hibernate Proxies
PostPosted: Mon Aug 15, 2005 11:34 am 
Newbie

Joined: Fri May 20, 2005 12:02 pm
Posts: 10
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.