Re: bi navegation

Per Nyfelt <[email protected]> Sun, 26 Dec 2004 11:20:22 +0100
Newsgroups gmane.comp.java.ozone.user
Organization Resourcing Networks
Message-ID <[email protected]>
Hi Marcelo,

Make you Notes be aware of their parent Client class e.g. add something like 

private Client parent;

public void setParent(Client parent) {
 this.parent = parent;
}

public Client getParent() {
 return parent;
}

To you Notes class.

If you need something more advanced than this you probably need queryable 
collections; see the FAQ for more information on that.

Best regards,
Per

torsdagen den 16 december 2004 01.52 skrev Marcelo Rezende Módolo:
> Hi,
> I am new to ozone and I have a question:
> I have a class Client that have a collection of notes, so I make a
> collection of Clientes and put than in ozone. When I retrieve a Client I
> get his notes collection to, that is OK. But what can I do if I have to
> navegate in the other direction,  ie If I have to take a note and find a
> Client with It. Maybe I have to take two collections, ClintCollection and
> NoteCollection??
>
> If someone can help me I apreciate.
>
> thanks
> marcelo módolo


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/