hi j�rgen,
you can use a report query to retrieve only the columns you need.
ReportQueryByCriteria query;
Criteria crit;
crit = new Criteria();
crit.addLike("name", "%er");
query = new ReportQueryByCriteria(Person.class, crit);
query.setColumns(new String[] { "count(*)" });
broker.getReportQueryIteratorByQuery(query);
hth
jakob
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 14, 2002 5:35 PM
Subject: question on joins
> hi!
> i need to do a PersistenceBroker.getCount( Query ). the query has to be a
> join of 2 tables (one of them is a m:n association).
>
> now i need to do a Query, that contains the join. how can i do that? the
> query should transfer as less data as possible, in the best cas only the
> result count.
>
> 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]>