Hello I was trying to get this work, but still nothing, I made the following to see what directory context I was, because it seems Im not positioned in the right place to makes search.
JNDIContext a = new JNDIContext(EOAdaptor.adaptorWithModel(EOModelGroup.defaultGroup().modelNamed("MyEOModel")));
System.out.println(a.initialDirContext());
and I get on screen from the println a null....
so I dunno if the problem is somewhere in this way, or Im just completely lost (my guess the second option).
Thanks for any help..
Gustavo
On May 7, 2009, at 2:21 PM, Gustavo Pizano wrote: Hello, I reverse engineered the LDAP schema to EOModel, now I have to follwoing
an entity XWSContactsGroup, a XWSContact, and a XWSContactElement.
I made the following relationships, whiteout flattering,
XWSContactsGroup >> << XWSContact >> < XWSContactElement.
now, I want to fetch a specific XWSContacGroup dowing the follwoing
XWSContactsGroup cg = XWSContactsGroup.fetchRequiredXWSContactsGroup(ec, "cn","Contacts");
and this is the result
Im not LDAP expert, but my boss kinda told me that the & sign shouldn't be there, but I don't have control over that & generation,... so...
I guess there should be another to make the fetch.
Any ideas?
Thanks
Gus
|