Hi Gustavo,

I have never done any LDAP stuff, but I see a couple things that don't sound or look quite right. Maybe they are, but I figure it can't hurt to make some observations. See below:

On May 11, 2009, at 4:38 AM, Gustavo Adolfo Pizano wrote:

Hello again, and sorry for disturbing so much, but this topic is giving me a headache due that is first time I work with LDAP and not an WO/EOF expert.

I have two Entity (reversed engineered form the LDAP server) called XWSContactsGroup and XWSContact.

XWSContactgroup can have more XWSContactsGroup ObjClass inside and XWSContact also. so it will look like.

-XWS (root)
        -Contacts (XWSContactsGroup)

                -Apple.(XWSContactsGroup)
                        -Gustavo Pizano

                -XWS(XWSContactsGroup)
                        -Veronica Pizano
                        -Carolina Pizano
        
                -PhotoCenter(XWSContactsGroup)
                        -Gilbert Pizano
etc.

When I try to set the relations in EOModeler, I just did it as I normally did with a SQL server, it palced a FK called XWSContactsGroupID and the respectively relationships.

Are you saying that when you added the relationship in Entity Modeler, it added a FK attribute that is not actually in the LDAP server? Entity Modeler gives you the option to specify what the PK and FK are maually, and if you don't it can create new ones. I don't think you want it creating new ones. Go back to Entity Modeler and select the relationship and make sure the source and destination attributes of the relationship are the correct attributes - the same ones that the LDAP server will use to join the records together.

When I do the fetch of one XWSContactsGroup, let say i.e , and I try to get what it has inside, in this case more XWSContactsGroup, I get hte following exception. : com.webobjects.jndiadaptor.JNDIAdaptorException: Cannot get type with name relativeDistinguishedName for attribute xWSContactsGroupID

Above you say the FK is called "XWSContactsGroupID" and here it's complaining about "xWSContactsGroupID" (note the lowercase "x"). Could that be causing problems?

I checked, and it seems weird to me that, of course the relativeDistinguishedName att (pk) will never be the same,

How can a PK never be the same? Isn't it the identifier of the record in the LDAP record? How can that change without breaking lots of stuff?

Dave

so how can I set up the relationship and against what, to make it work properly?, or should I connect directly to the server avoiding the EOF?


Thanks again,

Gustavo Pizano
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to