Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 48361 invoked from network); 25 Jun 2010 18:38:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Jun 2010 18:38:11 -0000 Received: (qmail 79931 invoked by uid 500); 25 Jun 2010 18:38:11 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 79889 invoked by uid 500); 25 Jun 2010 18:38:11 -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 79881 invoked by uid 99); 25 Jun 2010 18:38:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 18:38:10 +0000 X-ASF-Spam-Status: No, hits=-1545.5 required=10.0 tests=ALL_TRUSTED,AWL,T_FRT_POSSIBLE X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jun 2010 18:38:10 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5PIbowc021340 for ; Fri, 25 Jun 2010 18:37:50 GMT Message-ID: <19881828.62961277491070063.JavaMail.jira@thor> Date: Fri, 25 Jun 2010 14:37:50 -0400 (EDT) From: "Stefan Seelmann (JIRA)" To: dev@directory.apache.org Subject: [jira] Created: (DIRSTUDIO-667) I want to specify the type and cardinality of members of the generated Java bean class MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 I want to specify the type and cardinality of members of the generated Java bean class -------------------------------------------------------------------------------------- Key: DIRSTUDIO-667 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-667 Project: Directory Studio Issue Type: Improvement Components: studio-persistence-tooling Reporter: Stefan Seelmann The current implementation automatically uses "Object" as type for all members of the generated Java bean class. It would be nice to be able to specify the Java type and the cardiality. The table viewer of DIRSTUDIO-666 should be extended by two columns. In the 1st new column the user can specify the Java type. The cell viewer should be a drop-down box with the following posssible values - String - int - long - boolean - byte[] - Calendar The default value depends on the LDAP syntax and the attribute type: - 1.3.6.1.4.1.1466.115.121.1.49 (Integer): int - 1.3.6.1.4.1.1466.115.121.1.7 (Boolean): boolean - 1.3.6.1.4.1.1466.115.121.1.24 (Generalized Time): Calendar - if attribute type is binary (see SchemaUtils.isBinary()): byte[] - otherwise: String in the 2nd new column the user can define the cardinality: - 0..1 - 1 - 0..N - 1..N The default values depend on the object class, attribute type and syntax: - if the attribute is defined as "must" in the object class the lower bound is 1, otherwise it is 0 - if the LDAP attribute type is single-valued the upper bound is 1, otherwise it is N For multi-valued attributes the user should also be able to specify if he wants to use a Set (default), a List, or an Array. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.