Typically, your query of the Contact table would look like this:
Criteria criteria = new Criteria();
criteria.add.. //add your criteria here
List results = ContactPeer.doSelect(criteria); //get the list of
results
Contact contact = (Contact)results.get(0); //get the
Hello Thomas,
My understanding is that if in the XML schema the foreign key
relation is defined Torque
will generate a protected method in BaseContactPeer
doSelectCotactJoinByPhoneNumbers() (or something like that)
So all that needs to be done is to make it public in ContactPeer.
This
Hi Andras,
you are right, this is a possibility I did not think of. However (to excuse
my forgetfulness just a bit), there might be situtations where this is not
enough, e.g. if you you have a deeper tree of objects, or if you want to
load some dependencies instantly and lazy-load the