From: Rob Bygrave <robin.bygr...@gmail.com>
Date: Sun, 7 Mar 2010 10:47:02 +1300
Local: Sat, Mar 6 2010 4:47 pm
Subject: Re: [ebean] Re: Eager vs Lazy produces different results
resultMap = Ebean.query(OrderItems.class).findGroups("order.customer", "order.deliveryMethod", "order") // el expression << Very interesting ... I like it. performance) that it has to find a map or group, else the findGroups() method can also be a utility method in your application. With a little bit of reflection magic you can do that. << My instinct (assuming I understood the example of course) suggests there Hmmm, it does look like a pretty useful feature though. Getting back to Option 1 and Option 2 ... *I am strongly in favour of going with option 2 which means we'd do the same Ebean.find(Customer.class) ... so that meant .. filter on the *ToMany (orders)... returning new orders Daryl, Mario ... are you happy to go with Option 2 ? Anyone out there supporting the status quo (Option 1) ? Thanks, Rob. On Sun, Mar 7, 2010 at 6:18 AM, Mario Ivankovits <mario.ivankov...@gmail.com > wrote:
> Hi! > > We talked about the case of Customers and Orders. I suggested > > query = Ebean.find(Order.class)... > This is something I could have made use of sometimes either. > In fact, today I query the Order.class and build the map manually then > Hmmm .... and when I think of, it often gets even more complicated and > Map<Customer, Map<DeliveryMethod, List<Order>>> resultMap = .... > Such a result is also easily built by walking through the list in a > I think it is much like the gropu by feature in sql plus keeping the > Which then might look like this (I bring OrderItem in the game now): > Map<Customer, Map<DeliveryMethod, Map<Order, List<OrderItems>>>> > Question is if Ebean can make any use of the information (for > Ciao, 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.
| ||||||||||||||