<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.getUserSettings().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

Reply via email to