Hello all,

Being fairly new to Cayenne, this may be an obvious question. I would like to 
know how I can access the metadata stored on an attribute/relationship/entity 
in the datamap from within my velocity templates (I think in CayenneModeler, 
this is how the comment field is stored for a datamap item). I think this is 
the metadata stored via the newish InfoExtension facility.

I see that the DataChannelMetaData can be injected into a DataDomain (and I’m 
doing that at runtime in my server app), however I cannot see how to get to 
this metadata from an attribute or relationship or entity in the context of a 
velocity template. Is this possible? I would think it is since Modeler is able 
to read/write those comments, but I am having a hard time doing so in a 
template.

I did see that there is a hook to provide my own tool into the cgen tool. Would 
this be a potential path to look into if the metadata is not accessible 
directly in the templates as is? If so, any pointers on where to start?

Thanks for any advice.

F

-- 
Faizel Dakri
list...@dakri.com



Reply via email to