> Why not just one query?

that would work too, so when parsing the query, create both pk objects and
entity bean objects.

what that if the result is huge? you may not want to retrieve all the data
at once. only 100 beans at a time, but for the pk, you may want to retrive
all of them. especially if your bean has some large fields (LONG, BLOBS) in
it.

I'm not really sure what the specs says. 2 queries seems to give you a
little bit more flexibility here.

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to