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: Create criterion from criteria projection property
PostPosted: Tue Feb 26, 2008 6:09 am 
Beginner
Beginner

Joined: Tue Nov 27, 2007 1:25 pm
Posts: 24
Hello to all,

Situation:
Create criteria (ICriteria) based on class AAA, add projection to criteria - take few fields from class BBB - and add a result transformer to class CCC.

Target:
(in another method, having passed to it earlier mentioned criteria)
Create expression to filter by column from BBB, e.g. where BBB.Name like "John%".

The problem:
How to extract information about property "Name" and it's "owning" class (BBB) from criteria object, so that filter is constructed correctly (not "where Name like ..", but "where BBB.Name like ..")?

Regards,
MS


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.