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

From: Török Péte (torok..llround.net)
Date: Thu Feb 22 2007 - 11:43:16 EST

  • Next message: Mike Kienenberger: "Re: How to set default values or use triggers for a column?"

    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 tell Cayenne to leave that column in peace?
    I guess if I leave it out from the model completely, that would do... but then the DB schema and the Cayenne model would not be in sync :-(
    Any hints?
    Thanks in advance,
    Péter
     



    This archive was generated by hypermail 2.0.0 : Thu Feb 22 2007 - 11:43:52 EST