cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: DB default values
Date Tue, 17 Sep 2013 14:17:25 GMT
In regard to which fields you set, it really doesn't matter - the Java
defaults are completely separate from the DB defaults, so it's up to you.
 The DB defaults are not utilized by Cayenne at all.

John


On Tue, Sep 17, 2013 at 8:11 AM, Michael Gentry <mgentry@masslight.net>wrote:

> 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