[Jellyfish-development] Re: Recursive persistence
Status: Alpha
Brought to you by:
rauschuber
From: Chris R. <cra...@ya...> - 2003-08-08 04:27:05
|
David, I found an example and posted it on the wiki: http://jellyfish.sourceforge.net/moniwiki/wiki.php/SeePersonManagerExample The question is now listed under frequently asked questions. Please let us know whether or not this helps. Chris --- Chris Rauschuber <cra...@ya...> wrote: > Hi David, > > Sorry for the late reply. The jellyfish-development and > jellyfish-users lists are monitored more closely. > > I believe that what you want to do is possible. Both objects need > to > have <object-mapping> elements, then when one is persisted, the dn of > the other will be stored in the appropriate attribute. > I'll put together an example and send it out tomorrow. > > Also, you may want to upgrade to 0.3 since the configuration files > have > changed a bit since 0.2. > > Regards, > Chris > > >>>>> > > Hello everybody, > I´m starting to develope an application w/ JellyFish. In my LDAP I´ve > got two object classes: > > objectClass: ct > objectClass: cablemodem > > A ct can have one or more cablemodem classes. So when making the > persistence of a cablemodem I would like to describe the object > mapping > of the class cablemodem as: > > <object-mapping java-name="model.Cablemodem" > ldap-name="cablemodem" > dn="macaddress=${macAddress},ct=${uidClient},ou=Any"> > <attribute-mapping java-name="uidCliente" ldap-name="uidcliente"/> > <attribute-mapping java-name="clientClass" ldap-name="clientclass"/> > <attribute-mapping java-name="macAddress" ldap-name="macaddress"/> > </object-mapping> > > where macaddress is the uid of a cablemodem. > I need to be able to persist a cablemodem passing the uid of the > cablemodem and the uid of its parent class (ct). And make jellyfish > to > persist the two classes for me. > So I need to persist the complete graph of my cablemodem class in a > branch of the LDAP repository. > > Any suggestions > > __________________________________ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com > __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |