Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 25881 invoked from network); 10 May 2007 15:12:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2007 15:12:00 -0000 Received: (qmail 74850 invoked by uid 500); 10 May 2007 15:12:07 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 74811 invoked by uid 500); 10 May 2007 15:12:06 -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 74800 invoked by uid 99); 10 May 2007 15:12:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 08:12:06 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of wjfang@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 08:11:59 -0700 Received: by ug-out-1314.google.com with SMTP id 71so487000ugh for ; Thu, 10 May 2007 08:11:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=UO5mxoziXho+lVwFU1lG3vSEEW/blRheQ60+99OosTSY9osmmNiGSVslDj+la77dXLoIgYoyfZW7FHWgNwBAqGvPUOHCO/84AoWGf267cJWhutaTVRXvVNQAuFdOmGced9uDRCGXAgikH+aglRT9XzRYbpodmLamoEn5WdyUt+0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=pW8YVzk/X4im2l0v2FzRAVpUhJvEzzvZU5Y+QhS+Kgmtli/+WxPn+/qJ9Zy+x9EvqbGye1bUtmMInY/zd5KmrO9RGtcuP914NtVxUdzxM/lYa6IWzSHHdXoBXfO1RZ+PYeQfsUKL5F04LcMeF5KA1RhgT52X5mi4KxBOvGt9ovE= Received: by 10.82.188.15 with SMTP id l15mr3292818buf.1178809897846; Thu, 10 May 2007 08:11:37 -0700 (PDT) Received: by 10.82.159.10 with HTTP; Thu, 10 May 2007 08:11:37 -0700 (PDT) Message-ID: <5d3b96380705100811m3772b2cag72ab456fd3cdf988@mail.gmail.com> Date: Thu, 10 May 2007 16:11:37 +0100 From: "Weijian Fang" Sender: wjfang@gmail.com To: "Apache Directory Developers List" Subject: Re: Is there a tool to convert LDAP data to Java bean based on schema In-Reply-To: <46433374.8070905@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <5d3b96380705100754o2a75896ag40d61b5339fc9df3@mail.gmail.com> <46433374.8070905@apache.org> X-Google-Sender-Auth: cc7b386a1f2e031d X-Virus-Checked: Checked by ClamAV on apache.org Thanks for your quick response! On 10/05/07, Emmanuel Lecharny wrote: > Weijian Fang a =E9crit : > > > Hi, > > Hi ! > > > > > Is there a tool to convert LDAP data to Java bean based on LDAP > > schema? What I want is quite like what JAXB does on XML. Given an XML > > schema, JAXB is able to generate Java classes that translate schema > > compliant XML to Java beans and back. Now I have a LDAP schema, and a > > LDAP server where data complies with the scheam. I need to read LDAP > > data and conert to Java beans. I can do this manually. But if there is > > a tool able to automatically generate the code based on the LDAP > > schema, it wiil be great! > > I haven't heard of such a tool. But this would be pretty easy to write > one. We have a tool which converts Schema files to Ldif files, and one > could easily create something which generates Java classes. > > Wanna try ? > Sure. Please send me the tool and possibly some doc. And please tell me more hints on how to do it. Thanks a lot! Weijian > Emmanuel > >