You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Brian Lee <br...@kldp.org> on 2001/06/08 09:27:04 UTC

Getting joined result from more than one table

The following is code snippets about Criteria.addJoin()
(modified from Criteria HOWTO).

---
Criteria criteria = new Criteria();
criteria.addJoin(BarPeer.ROLE_ID, FooPeer.ROLE_ID);

Vector v = FooPeer.doSelect(criteria);
---

I found Criteria.addJoin() method in above code can get results from
only one peer - FooPeer.
How can I get joined results of FooPeer + BarPeer?

Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org