-->
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.  [ 2 posts ] 
Author Message
 Post subject: criteria search: nested search
PostPosted: Sat Mar 01, 2008 7:08 am 
Newbie

Joined: Fri Feb 29, 2008 3:44 am
Posts: 3
hi together,

i wan't to create a criteria search witch returns me all objects where the object itself, or even the nested objects contains a specific string.

Code:
Object1.class
String object1Name
List<Object2>

Object2.class
String object2name
List<Object3>

Object3.class
String object3name


e.g searching for "hello"

Code:
Object1.object1Name = "hello" or
Object1.List<Object2.object2name> = "hello" or
Object1.List<Object2>.List<Object3.object3name> = "hello"


thx a lot for you help!


Top
 Profile  
 
 Post subject: Expression.disjunction
PostPosted: Thu Mar 13, 2008 2:32 am 
Beginner
Beginner

Joined: Thu May 17, 2007 9:56 am
Posts: 21
Location: India
Hi,
U can use Expression.disjunction to give the or condition. Use it with the criteria & try to give your conditions

_________________
Kuzhali


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.