Re: JNDI/LDAP multi-value attributes just work
Re: JNDI/LDAP multi-value attributes just work
- Subject: Re: JNDI/LDAP multi-value attributes just work
- From: Karl Moskowski <email@hidden>
- Date: Mon, 7 Feb 2005 15:20:57 -0500
Siegfried,
I tried changing my eomodel so the uid attribute is a NSArray (instead
of String), and EOModeler gave these warnings:
Attribute uid in Entity InetOrgPerson has a valueClassName of NSArray,
but it doesn't have a valueFactoryMethodName.
Attribute uid in Entity InetOrgPerson has a valueClassName of NSArray,
but it doesn't have a adaptorValueConversionMethodName.
What did you use for the two methods? How did you handle settter
methods for your "arrayed" attributes?
Thanks,
Karl.
There were some discussion on the wo-dev lists on reading and writing
multi-value LDAP attributes with the JNDI connector. I just learned
working with these in WO ist just plain easy.
The problem is EOModeler, which creates multi-value attributes from the
directory schema as directory strings. If you change the attribute
accessor methods from String to NSArray all trouble is gone. It does
not
matter if your attributes will contain one or more values or nothing at
all. It's just working.
I tested this in the development environment on Mac OS X 10.3.7 with
Xcode 1.5, WO 5.2.3 and a Sun Java System Directory Server 5.2 Patch2.
Siegfried Makedanz
AWI Computer Center
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden