|
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
|