sible too. I have date_created,
and created_by, date_modified, and modified_by in many tables.
Thanks,
Fredrik
-Original Message-
From: yongbl [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 20, 2007 7:37 AM
To: user@cayenne.apache.org
Subject: Re: Common attributes in the model
Hi Ma
Hi Malcolm,
After setting the superclass, I tried to generate the database schema. But
the attributes in the superclass is not reflected in the schema.
Do I have to manually add to the database the common attributes? If so, then
settting the superclass didn't offers any time saving since
No there is not.
cheers Malcolm
On 6/20/07, yongbl <[EMAIL PROTECTED]> wrote:
Hi Malcolm,
Is there a need to create DBEntity and ObjEntity for the superclass?
Regards,
James
Malcolm Edgar <[EMAIL PROTECTED]> wrote:
Hi James,
Yes you can. In the modeler, you define a common "Custom
Hi Malcolm,
Is there a need to create DBEntity and ObjEntity for the superclass?
Regards,
James
Malcolm Edgar <[EMAIL PROTECTED]> wrote:
Hi James,
Yes you can. In the modeler, you define a common "Custom Superclass" under
the DataMap "Entity Defaults". Make sure you custom superc
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 suppor
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 crea