Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 945389D99 for ; Thu, 9 Feb 2012 09:21:48 +0000 (UTC) Received: (qmail 2567 invoked by uid 500); 9 Feb 2012 09:21:48 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 1887 invoked by uid 500); 9 Feb 2012 09:21:32 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 1859 invoked by uid 99); 9 Feb 2012 09:21:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 09:21:28 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 09:21:21 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RvQBY-0007NJ-UD for user@cayenne.apache.org; Thu, 09 Feb 2012 01:21:00 -0800 Date: Thu, 9 Feb 2012 01:21:00 -0800 (PST) From: atomix To: user@cayenne.apache.org Message-ID: <1328779260928-3728880.post@n3.nabble.com> Subject: How can I get the description of a table field, or field from CayenneObject MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I was quite new with Cayenne, how can I do this : Book extends _Book public static final String DESCRIPTION_PROPERTY = "description"; public static final String ID_BOOK_PROPERTY = "idBook"; public static final String LEVEL_PROPERTY = "level"; public static final String PATH_PROPERTY = "path"; public static final String STATUS_PROPERTY = "status"; public static final String TITLE_PROPERTY = "title"; .... How can I get the information of field (title, "title" , String ) which inside CayenneObject , or I have to write the inspector by my own? ( There some bean inspector library but I think Cayenne done that already, and other hack will be ugly )... ----------------------------- *Further :* I'm intergrating Jasper with Cayenne and want to provide Jasper Designer IReport a DataProvider , which in turn list the Field of the Table or Entity to Roll through the Database ... I was quite new with Cayenne so I can't find anywhere a way to get the field description, name, title and so... from a CayenneObject like Book (which generated by Cayenne Modeler ) , It's not too hard to type the names manually but I still think there is a way to get this out by Cayenne. Did anyone walk this line before, really appreciate the helping! -- View this message in context: http://cayenne.195.n3.nabble.com/How-can-I-get-the-description-of-a-table-field-or-field-from-CayenneObject-tp3728880p3728880.html Sent from the Cayenne - User mailing list archive at Nabble.com.