cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atomix <>
Subject How can I get the description of a table field, or field from CayenneObject
Date Thu, 09 Feb 2012 09:21:00 GMT
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:
Sent from the Cayenne - User mailing list archive at

View raw message