IIRC, the second one is only possible with HQL.
You'll need to add something to the first one that makes it useful to have
that construct, as (select * from X) is equivalent to X.

    Diego


On Tue, Oct 19, 2010 at 03:03, ShurikEv <[email protected]> wrote:

> Hi people!
> I have some problem: how i can use ICriteria do this?
>
> * select t1.id from t1
> innet join (select * from t2) tt2 on tt2.t1_id=t1.id
> * select t1.id from t1
> innet join t2 on (t2.t1_id=t1.id and t2.amount=1)
>
> It's possibly?
>
> PS This simplified versions of the queries
>
> Thx
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to