From: Daryl Stultz <kungfumachin...@gmail.com>
Date: Thu, 4 Mar 2010 05:02:57 -0800 (PST)
Local: Thurs, Mar 4 2010 8:02 am
Subject: Re: Eager vs Lazy produces different results
On Mar 3, 9:48 pm, Rob Bygrave <robin.bygr...@gmail.com> wrote: > Ok, how about a different example ... Yes, in fact I thought that's the way JPA would work at first. Now > Lets say you have customers and each customer can have 10000's of orders... > Does this example make sense? that I understand ORM better, I feel it's proper for the collection to represent the contents of the database. In this case I would select orders rather than customers. Suppose I didn't have join("validRoles") in the query. Wouldn't the List<User> result = Ebean.find(User.class).join("validRoles", new So at least in the name of internal consistency (and with JPA) it I can work up a JPA example, but it will take a bit so I'll get to it /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.
| ||||||||||||||