Hi James,
Yes you can. In the modeler, you define a common "Custom Superclass" under
the DataMap "Entity Defaults". Make sure you custom superclass extends
DataObject, and add your common attributes. You generated classes will then
extend your common superclass.
Make sure your DB Entities support these attributes.
regards Malcolm Edgar
On 6/18/07, yongbl <i_yongb..ahoo.com.sg> wrote:
>
> Hi,
>
> I am new to Cayenne. In many of the models that I am using, there are
> common attributes like created date, modified date, created by, etc. Is
> there a right way to add the common attributes, other than manually adding
> the common attributes in the models?
>
> It seems that I can't create a base model with the common attributes,
> and extend the rest of the models from the base model, right?
>
> Regards,
> James
>
>
> ---------------------------------
> Yahoo! Movies - Search movie info and celeb profiles and photos.
This archive was generated by hypermail 2.0.0 : Mon Jun 18 2007 - 18:27:20 EDT