Thomas,

Thanks. The PersistenceBrokerAware interface will work. While a service request is handled by the server I want all dates such as transaction_date, inovoice_date, completed_date, ... to all be set to to the time the request was received by the server.

-chris worley

On 12/5/05, Christopher C. Worley <[EMAIL PROTECTED]> wrote:
I would like to perform operations on an object before the object is
persisted.  One thing I would like to do is set a transactionDate
field.  I want the field to be set on the server side so all records can
be set to the same date.  What I mean by that is I do not want to set
the date as the user flips through wizard pages and have the dates vary
by seconds.

You could implement PersistenceBrokerAware:

http://db.apache.org/ojb/docu/guides/advanced-technique.html#Instance+Callbacks

but in your case it actually might be more useful to let the database
do this (e.g. a timestamp column or one backed by a sequence) ?

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to