I would personally do it with a postAdd callback, as mentioned in the top 
thread in Mike’s list.

Andrus

On Jun 13, 2014, at 4:37 PM, Mike Kienenberger <[email protected]> wrote:

> Here are some previous discussions on default values, from most
> current to ancient.
> 
> I don't know if this is a complete list.
> 
> DB default values
> http://mail-archives.apache.org/mod_mbox/cayenne-user/201309.mbox/%3ccagscxrykqbpmm+kbmxhbgag3+uvnfct-xqe6bhtqpaaqnxv...@mail.gmail.com%3E
> 
> default value from the modeler ?
> http://mail-archives.apache.org/mod_mbox/cayenne-user/201004.mbox/%[email protected]%3E
> 
> Handling of database NULL - default value column to modeler?
> http://mail-archives.apache.org/mod_mbox/cayenne-user/200808.mbox/%[email protected]%3E
> 
> Setting Default Values for Entities
> http://mail-archives.apache.org/mod_mbox/cayenne-user/200712.mbox/%[email protected]%3E
> 
> 
> 
> 
> On Fri, Jun 13, 2014 at 4:56 AM, Chukwuemeka Mbonu Onwukwe
> <[email protected]> wrote:
>> Hi Markus,
>> I think it would make sense.
>> Definitely.
>> 
>> Regards,
>> Emeka
>> 
>> On 13 Jun 2014 09:26, "Markus Reich" <[email protected]> wrote:
>>> 
>>> Hi,
>>> 
>>> would it make sense to add in Cayennen Modeler a field to set a default
>>> value. Cayenne set's per default all fields to null, if they weren't set
>> in
>>> Java?
>>> 
>>> regards
>>> Meex
> 

Reply via email to