Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 99145 invoked from network); 17 Dec 2007 16:47:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Dec 2007 16:47:44 -0000 Received: (qmail 54605 invoked by uid 500); 17 Dec 2007 16:47:32 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 54570 invoked by uid 500); 17 Dec 2007 16:47:32 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 54559 invoked by uid 99); 17 Dec 2007 16:47:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2007 08:47:32 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [81.169.146.160] (HELO mo-p00-ob.rzone.de) (81.169.146.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2007 16:47:08 +0000 X-RZG-CLASS-ID: mo00 X-RZG-AUTH: kR2YrGeU3i5GJZNxbYfAbITnBeX/YWiFZ/RSZNN7D9RkvGeI3+eSP7ozvw== Received: from [127.0.0.1] (p548FCBA7.dip.t-dialin.net [84.143.203.167]) by post.webmailer.de (fruni mo53) (RZmta 14.6) with ESMTP id 203732jBHF3cu4 for ; Mon, 17 Dec 2007 17:47:09 +0100 (MET) (envelope-from: ) Message-ID: <4766A8BD.9010106@labeo.de> Date: Mon, 17 Dec 2007 17:50:05 +0100 From: Stefan Zoerner User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Object LDAP mapping References: <23588.84.233.182.145.1197908227.squirrel@www.pier29.net> In-Reply-To: <23588.84.233.182.145.1197908227.squirrel@www.pier29.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Graham! Graham Leggett wrote: > 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. JNDI itself offers a simple mapping from LDAP entries to Java objects and vice versa with the help of so called state factories (Java -> LDAP) and object factories (LDAP -> Java). http://java.sun.com/products/jndi/tutorial/objects/state/index.html http://java.sun.com/products/jndi/tutorial/objects/factory/index.html At least it helps you to abstract from the LDAP schema. Spring LDAP is another option. It has comparable functionality, but you get another dependency (JNDI is always present). http://www.springframework.org/ldap Both options do not provide transparent mapping like Hibernate does. Greetings, Stefan