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 <[email protected]>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 > <[email protected]>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 > > >
