On Wed, Dec 23, 2009 at 10:18 PM, Dmitry Olyenyov <[email protected]
> wrote:

> Hi!
>
> Help me, please, with example of inner and outer relations in findAll
> query. Is it possible to do without manual BySQL()? I want to do
> following select:
>
> select * from payment_order o
> join client c on o.client_id = c.id
> where c.type = 'xxx'
> =>
> PaymentOrder.findAll(.......)
>
> I had a lot of googling and didn't found anything...
>


PaymentOrder.findAll(In(PaymentOrder.client, Client.id, By(Client.type,
"foo")))


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


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--
You received this message because you are subscribed to the Google Groups "Lift" 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/liftweb?hl=en.

Reply via email to