It is right, that the cayenne classes get richer and richer,
but it is allways a good idea to build a own
base class for the business objects to be a
little more independent from the changes
of the cayenne classes ... In my case I
have a special support for transient informations
in my business object class.
cayenne-use..bjectstyle.org schrieb am 17.02.05 01:42:21:
>
> Fredrik Liden <flide..ranslate.com> wrote:
> > Also, what is the purpose of the DataObject Superclass field that can be
> > set under the maps?
>
> You can set a superclass for all of your DataObjects. For instance I have
> GenericDataObject set as my superclass and it contains a variety of
> convenience methods [DataObject getLocalObject(),
> objectMatchingPrimaryKey(), primaryKey(), and so on] that each of my
> DataObjects use.
>
> Ironically, most of those functions are now available directly in Cayenne,
> but at the time, they were all local patches :)
>
> -Mike
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
This archive was generated by hypermail 2.0.0 : Thu Feb 17 2005 - 06:50:33 EST