Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 22197 invoked from network); 10 May 2007 15:00:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2007 15:00:36 -0000 Received: (qmail 48808 invoked by uid 500); 10 May 2007 15:00:33 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 48774 invoked by uid 500); 10 May 2007 15:00:33 -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 48752 invoked by uid 99); 10 May 2007 15:00:33 -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:00:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.27.42.35] (HELO smtp5-g19.free.fr) (212.27.42.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 08:00:25 -0700 Received: from [192.168.0.1] (vol75-3-82-66-216-176.fbx.proxad.net [82.66.216.176]) by smtp5-g19.free.fr (Postfix) with ESMTP id 6A43F443D9 for ; Thu, 10 May 2007 17:00:04 +0200 (CEST) Message-ID: <46433374.8070905@apache.org> Date: Thu, 10 May 2007 17:00:04 +0200 From: Emmanuel Lecharny User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050923) X-Accept-Language: fr, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Is there a tool to convert LDAP data to Java bean based on schema References: <5d3b96380705100754o2a75896ag40d61b5339fc9df3@mail.gmail.com> In-Reply-To: <5d3b96380705100754o2a75896ag40d61b5339fc9df3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Weijian Fang a �crit : > 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 ? Emmanuel