Re: DB default values

2013-09-17 Thread John Huss
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 wrote: > Hello Markus, > > You should create

Re: DB default values

2013-09-17 Thread Michael Gentry
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 wrote: > Hi, > > what is the best practice with db

DB default values

2013-09-17 Thread Markus Reich
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