did you try query.addPrefetchedRelationship("elements") ?Hi all,
I have un object A referencing � collection with B elements.
A has an attribute 'name' and a relation 'elements', B has an attribute 'filter'.
I want to load elements where name='xxx' and filter='yyy'.
I use the PersitenceBroker API, here is my request:
criteria = new Criteria();
criteria.addEqualTo("name", 'xxx'); criteria.addEqualTo("elements.filter", 'yyy');
query = QueryFactory.newQuery(A.class, criteria);
A a = (A)broker.getObjectByQuery(query);
With the relationship auto-retrieve=true all elements are loaded!
If auto-retrieve=false the relationship is not loaded.
Is there a solution ?
Thanks
Gildas
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
