On 9/02/12 8:21 PM, atomix wrote:
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 )...
There is a little ant task called cgen which creates the getters and setters for you. http://cayenne.apache.org/doc/ant-tasks.html
----------------------------- *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!
Yes. We use JasperReports and wrote our own data provider to do just that. It isn't too hard to glue it all together. Ari -- --------------------------> Aristedes Maniatis GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A
