From: Mario Ivankovits <mario.ivankov...@gmail.com>
Date: Sat, 6 Mar 2010 09:18:06 -0800 (PST)
Local: Sat, Mar 6 2010 12:18 pm
Subject: Re: Eager vs Lazy produces different results
Hi!
> We talked about the case of Customers and Orders. I suggested This is something I could have made use of sometimes either. > selecting Orders rather than Customers which leads to the problem of > organizing Orders by Customers. It seems like (a variation of?) > query.findMap() could take care of this: > query = Ebean.find(Order.class)... 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.
| ||||||||||||||