Re: Arrays in OM classes

2005-02-22 Thread adam . s . allgaier
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

Re: Arrays in OM classes

2005-02-22 Thread Andras Balogh
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

Re: Arrays in OM classes

2005-02-22 Thread Thomas Fischer
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