-->
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.  [ 3 posts ] 
Author Message
 Post subject: findByExample method with relations
PostPosted: Mon Aug 16, 2010 11:41 am 
Newbie

Joined: Thu Sep 03, 2009 12:37 pm
Posts: 13
Hi,

I'm looking for a way to search objects by example together with relations. The default method doesn't do this.

http://www.devarticles.com/c/a/Java/Hib ... n-Depth/2/

shows a way to apply joins with single properties (Restrictions). How can I combine this with example-queries?

Edit:

For those who care: I like to set up a more generic way to filter for properties. Imagine a table with data from two or more related tables and filter fields above every column to apply. For sure, you can write criterias for each table, but the code will be a mess and VERY depending on the tables/objects.


Top
 Profile  
 
 Post subject: Re: findByExample method with relations
PostPosted: Tue Aug 17, 2010 4:38 pm 
Newbie

Joined: Thu Sep 03, 2009 12:37 pm
Posts: 13
*push*

No way?


Top
 Profile  
 
 Post subject: Re: findByExample method with relations
PostPosted: Wed Aug 18, 2010 8:19 am 
Newbie

Joined: Thu Sep 03, 2009 12:37 pm
Posts: 13
Could you please tell me which blog entry is relevant for my problem? As far as browsed, the most interesting part was about filters, which cannot solve my problem.


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

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.