The way I understand this, what you are asking for is the ability to define which elements of data to eagerly retrieve, and what to lazy load? Becasue, in some cases the developer knows up front, or can make a very good guess what elements of data will be needed?
How well does this work, what difficulties have you run into? I find that in tuning an application, when all I work with is the .hbm.xml files, I end up tuning the performance better for one scenario, and making things worse for other scenarios. Having a more flexible approach would help me a signficantly... Eric > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf > Of Dmitriy Kiriy > Sent: Thursday, December 04, 2003 10:06 AM > To: Hibernate-Devel > Subject: [Hibernate] Use Cases or Fetch Groups > > > <quote> (From the JDO 2.0 kick off meeting) > Use Cases or Fetch Groups > This is a fairly open idea right now, however the idea is > that a developer > can setup different "use cases", which can encapsulate performance > characteristics. For example, if you are in one use case, use > a particular > fetch group (as you know that in this case you will need X, > Y, and Z), a > certain locking strategy, etc. This could be really powerful, > so look out > for this concept in the future! > </quote> > > So ,as I understand I will can write things like this without > any subsequent > queries in getters: > > <code> > > List users = queryByCriteria(User.class,..., new String[] > {"user.userGroup.*", "user.userSettings.pagesSettings.*"}); > Iterator i = users.iterator(); > while(i.hasNext()) { > User user = (USer)users.next(); > serletResponseStream.prinln("<tr>"); > > serletResponseStream.prinln("<td>"+user.getUserGroup().getName > ()+"</td>"); > > serletResponseStream.prinln("<td>"+user.getUserGroup().getId() > +"</td>"); > > serletResponseStream.prinln("<td>"+((PageSettings)user.getUser > Settings().get > PageSettings.get(0)).getParamName()+"</td>"); > > And so on and blah blah... > } > > </code> > > What do you all think about? > > - > Dmitriy Kiriy > OILspace, 4, B. Spasskaya str. room 01, 107078 Moscow, Russia > P:+7 095 787 4700 F:+7 095 787 4701 E:[EMAIL PROTECTED] > OILspace - The resource enriched - www.oilspace.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN's Audience Survey. > Help shape OSDN's sites and tell us what you think. Take this > five minute survey and you could win a $250 Gift Certificate. > http://www.wrgsurveys.com/2003/osdntech03.php?site=8 > _______________________________________________ > hibernate-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/hibernate-devel ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel