The RDBMS access model is completely different from the LDAP access model. Trying to map JDBC to LDAP and vice versa may work superficially but should only be used by those who need training wheels on LDAP.
You may want to try using jdbc-ldap with your favorite orm.
On 12/17/07, Graham Leggett <firstname.lastname@example.org > wrote:
> Hi all,
> Although not directly related to the directory server itself, I thought I
> would ask here as the concentration of LDAP experts is high :)
> Has anybody heard of a Java package that does object to LDAP mapping,
> along the lines of Hibernate or Torque in the land of SQL?
> In other words, I would like a Java class hierarchy of objects
> representing LDAP objectlasses and LDAP objects.
> If such a thing doesn't exist, would the directory project be keen to
> adopt such a new piece of code as its home, if it were to be written?