From: Rob Bygrave <robin.bygr...@gmail.com>
Date: Sat, 6 Mar 2010 11:11:52 +1300
Local: Fri, Mar 5 2010 5:11 pm
Subject: Re: [ebean] Re: Eager vs Lazy produces different results
subquery() ... could create a Query and return that queries expression list // returns the expressionList of the subquery ExpressionList<T> subquery() { Query<T> subquery = ... // id in (select id from MyType where ........) return subQuery.where(); } Not sure of the best way ... you could just say... don't go fluid which is > How would things "switch back" to the root query probably fine. // so we can refer to the 'root' query ... userQuery.where().subquery().in("validRoles.name", roleNames); // we need to add more criteria to the 'root' query (not the subquery) On Sat, Mar 6, 2010 at 5:51 AM, Daryl Stultz <kungfumachin...@gmail.com>wrote: > > We could for example do...
> >Ebean.find(User.class) > > .where().*subquery()*.in("validRoles.id",myRoles) > > .findList(); > >I'm not sure about "subquery()" > I can see something like subquery() being generally useful - not just > /Daryl You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||