Hi Juergen, [EMAIL PROTECTED] wrote:
hi!There are several possible solutions for this (ordered by relevance):
i want to display several lists (collections of the same class). the user chooses one of the objects, and this will be loaded from the database.
my current solution is a PB.getCollectionByQuery, but this is very slow, because the whole object tree is loaded (but not used). is there a solution?
1. use proxies (work great in singlevm mode)
2. you can set auto-retrieve="false" on reference- and collection-attributes that you don't want to load.
(they will be set to null)
(If you must access these attributes later you can use PB.retrieveReference("attributename"))
3. you can use additional preview-classes that are used for display purposes only. These classes would have only the most neccessary attributes and no references.
4. you can use report queries for display purposes that do not materialize complete entities, but only Object[] representing a resultset-row.
cheers,
Thomas
i'm not sure, but i think this should be done by using proxy classes, but i had lots of troubles with them in client / server mode (never tried them in singlevm).
please help
juergen
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
