cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Fran├žois Smigielski" <>
Subject questions about reflection
Date Sun, 05 Aug 2007 09:43:16 GMT
Hello, list!

I use cayenne in a brand new project, a text-based online RPG. I refactor
from scratch an old RPG written in PHP/MySQL. I discovered cayenne a few
days ago. After spending some time to test it, it will be my final choice
(thanks a lot for your work, cayenne is *really* easy to use). That's it for
the context of my question :)

I try to write a JSP that proposes a low-level administration of the
persistent objects. I would be able to:

   1. discover the class of the persistent objects
   2. discover their properties
   3. allow setting and getting these properties

I am not yet able to discover the classes, I still have to feed them by
hand. It would be easy if I had access to the XML map, but I didn't find yet
the right utility class.
To discover the properties, I used the name convention of the modeler,
naming the properties with the suffix "_PROPERTY". And to get and set these
properties, I retrieve the value of the fields ending with "_PROPERTY" and I
call readProperty/writeProperty with this value.

I am sure there exists better ways to achieve this. Better and more robust.
Please, can you tell me useful hints, or helpful URL, or even code samples
that could help me?

Thank you.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message