cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <mgen...@masslight.net>
Subject Re: DB default values
Date Tue, 17 Sep 2013 13:11:57 GMT
Hello Markus,

You should create an onPostAdd callback in the modeler, generate the
class(es) again, then implement the method (setting the default values you
want) in the data object subclass.

mrg



On Tue, Sep 17, 2013 at 6:09 AM, Markus Reich
<markus.reich@markusreich.at>wrote:

> Hi,
>
> what is the best practice with db's default values?
> Is it good style to copy the logic into the constructor of the extended
> data object?
>
> Meex
>

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