Guess I'll have to upgrade to NH3 soon :) -Francois
On Wed, Oct 20, 2010 at 11:32 AM, Fabio Maulo <[email protected]> wrote: > In NH3 you can do it even with Criteria > > -- > Fabio Maulo > > > El 20/10/2010, a las 09:31, Patrik Lowendahl <[email protected]> > escribió: > > So basically a HQL Query is needed? > > On Wed, Oct 20, 2010 at 2:15 PM, Fabio Maulo < <[email protected]> > [email protected]> wrote: > >> from A a left join a.B b with b.Name = "Name1" or b.Name = "Name2" >> >> On Wed, Oct 20, 2010 at 8:58 AM, Patrik Lowendahl >> <<[email protected]> >> [email protected]> wrote: >> >>> Hi, >>> >>> I'm trying to spin my head around getting this T-SQL query into a >>> criteria/hql in NH 2.1: >>> >>> select * from A >>> inner join B where B.ID <http://b.id/> = A.BID and B.Name = "Name1" >>> inner join B where B.ID <http://b.id/> = A.BID and B.Name = "Name2" >>> >>> is it possible or do I need to revert to T-SQL queries here? >>> >>> -- >>> Patrik Löwendahl >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "nhusers" group. >>> To post to this group, send email to <[email protected]> >>> [email protected]. >>> To unsubscribe from this group, send email to >>> <nhusers%[email protected]> >>> [email protected]. >>> For more options, visit this group at >>> <http://groups.google.com/group/nhusers?hl=en> >>> http://groups.google.com/group/nhusers?hl=en. >>> >> >> >> >> -- >> Fabio Maulo >> >> -- >> You received this message because you are subscribed to the Google Groups >> "nhusers" group. >> To post to this group, send email to <[email protected]> >> [email protected]. >> To unsubscribe from this group, send email to >> <nhusers%[email protected]> >> [email protected]. >> For more options, visit this group at >> <http://groups.google.com/group/nhusers?hl=en> >> 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. > > -- > 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.
