Re: How to handle java.util.Map
Hi, I usually use Map when a object in collection is needed to be retrieved by key and the collection is too big to scan the collection to get the wanted object specified by key. Regards, Rice --- Christopher C Worley <[EMAIL PROTECTED]> wrote: > Rice, > > I have not. It may be common, I was just wanting to > see an example. It > may be a helpfull option one day. > > From my experience i cannot visualize how an object > would relate to > another object with a map. I am not saying your > design is wrong. Maybe > I'll learn somthing new ;) > > -chris wroley > > >Hi, > > I do not really understand what you want to ask. > I > >just have a class with a java.util.Map field and > try > >to map it. Do people NOT use java.util.Map in > object > >modeling? > > > >Regards, > >Rice > > > > > >--- Christopher C Worley <[EMAIL PROTECTED]> > wrote: > > > > > >>Rice, > >> > >>I am curious to know when would you need to use a > >>Map? > >> > >>-chris worley > >> > >> > >> > >>>Hi, > >>> In OJB document, I can find information on how > to > >>>handle collection mapping. However, I can not > find > >>>information on how to handle java.util.Map. Is it > >>>supported? > >>> > >>>Regards, > >>>Rice > >>> > >>>__ > >>>Do you Yahoo!? > >>>Yahoo! Tax Center - forms, calculators, tips, > more > >>>http://taxes.yahoo.com/ > >>> > >>> > >>> > >>- > >> > >> > >>>To unsubscribe, e-mail: > >>> > >>> > >>[EMAIL PROTECTED] > >> > >> > >>>For additional commands, e-mail: > >>> > >>> > >>[EMAIL PROTECTED] > >> > >> > >>> > >>> > >>> > >>> > >> > >> > >> > >> > >> > >- > > > > > >>To unsubscribe, e-mail: > >>[EMAIL PROTECTED] > >>For additional commands, e-mail: > >>[EMAIL PROTECTED] > >> > >> > >> > > > > > >__ > >Do you Yahoo!? > >Yahoo! Tax Center - forms, calculators, tips, more > >http://taxes.yahoo.com/ > > > >- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to handle java.util.Map
Hi, > -Original Message- > From: Rice Yeh [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27, 2003 2:29 PM > To: [EMAIL PROTECTED] > Subject: How to handle java.util.Map > > > Hi, > In OJB document, I can find information on how to > handle collection mapping. However, I can not find > information on how to handle java.util.Map. Is it > supported? Yes, http://db.apache.org/ojb/tutorial3.html#types%20allowed%20for%20implementing %201:n%20associations explains that it is possible to use user defined collections. SO it would be a no brainer to use write a class extending HashMap and implementing ManageableCollection. (there is a an example implementation for a java.util.set: http://cvs.apache.org/viewcvs/db-ojb/src/java/org/apache/ojb/broker/util/col lections/ManageableHashSet.java?rev=HEAD&content-type=text/vnd.viewcvs-marku p) cheers, Thomas Under ODMG you have a working Map implementation already: http://db.apache.org/ojb/api/org/odmg/DMap.html > > Regards, > Rice > > __ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to handle java.util.Map
Rice, I have not. It may be common, I was just wanting to see an example. It may be a helpfull option one day. From my experience i cannot visualize how an object would relate to another object with a map. I am not saying your design is wrong. Maybe I'll learn somthing new ;) -chris wroley Hi, I do not really understand what you want to ask. I just have a class with a java.util.Map field and try to map it. Do people NOT use java.util.Map in object modeling? Regards, Rice --- Christopher C Worley <[EMAIL PROTECTED]> wrote: Rice, I am curious to know when would you need to use a Map? -chris worley Hi, In OJB document, I can find information on how to handle collection mapping. However, I can not find information on how to handle java.util.Map. Is it supported? Regards, Rice __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to handle java.util.Map
Hi, I do not really understand what you want to ask. I just have a class with a java.util.Map field and try to map it. Do people NOT use java.util.Map in object modeling? Regards, Rice --- Christopher C Worley <[EMAIL PROTECTED]> wrote: > Rice, > > I am curious to know when would you need to use a > Map? > > -chris worley > > >Hi, > > In OJB document, I can find information on how to > >handle collection mapping. However, I can not find > >information on how to handle java.util.Map. Is it > >supported? > > > >Regards, > >Rice > > > >__ > >Do you Yahoo!? > >Yahoo! Tax Center - forms, calculators, tips, more > >http://taxes.yahoo.com/ > > > >- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to handle java.util.Map
Rice, I am curious to know when would you need to use a Map? -chris worley Hi, In OJB document, I can find information on how to handle collection mapping. However, I can not find information on how to handle java.util.Map. Is it supported? Regards, Rice __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]