Re: How to set default values or use triggers for a column?

2007-02-22 Thread Mike Kienenberger
There's nothing sacred about having your cayenne model match your db schema. For performance reasons, you only want to pull in columns you actually need anyway. Because this field is being updated external your application, attempting to track it in Cayenne would be nightmare in any case. If you

How to set default values or use triggers for a column?

2007-02-22 Thread Török Péter
I have an attribute in some of my tables which are supposed to store the date&time of the record's last modification. The idea (coming from our DB expert) is that we set the default value (SYSDATE) in the DB and update the value via a trigger whenever the record is modified. Is there a way to te