Re: [appfuse-user] Automatic timestamping of all persisted data

2008-01-02 Thread Matt Raible
This may help: http://markmail.org/message/v3rjvfbvbbhncuod Matt On 12/18/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi Marcel, > > MarcelR wrote: > > I use: > > @Version > > private Timestamp changeDate; > > > > Standard in jpa (that I use most), don't know about hibernate > > >

Re: [appfuse-user] Automatic timestamping of all persisted data

2007-12-18 Thread Rob Hills
Hi Marcel, MarcelR wrote: I use: @Version private Timestamp changeDate; Standard in jpa (that I use most), don't know about hibernate That works well, provided you don't want to use optimistic locking. There are quite well-documented problems with using timestamps for

Re: [appfuse-user] Automatic timestamping of all persisted data

2007-12-17 Thread MarcelR
I use: @Version private Timestamp changeDate; Standard in jpa (that I use most), don't know about hibernate Marcel Rob Hills wrote: > > Hi All, > > I'm using AppFuse 2.0 + Struts2 + Hibernate. > > I need to timestamp all of my persisted data. > > I have a base model cla

Re: [appfuse-user] Automatic timestamping of all persisted data

2007-12-14 Thread Rob Hills
27;ll just manage the politics and do it with triggers. > - Original Message > From: Rob Hills <[EMAIL PROTECTED]> > To: users@appfuse.dev.java.net > Sent: Thursday, December 13, 2007 4:54:38 PM > Subject: Re: [appfuse-user] Automatic timestamping of all persisted data

Re: [appfuse-user] Automatic timestamping of all persisted data

2007-12-13 Thread Ron Anderson
December 13, 2007 4:54:38 PM Subject: Re: [appfuse-user] Automatic timestamping of all persisted data Hi Matt, Thanks for the reply. Matt Raible wrote: > Have you thought about doing this with a trigger in your database? Do > you need to record the user's information along with this audi

Re: [appfuse-user] Automatic timestamping of all persisted data

2007-12-13 Thread Rob Hills
Hi Matt, Thanks for the reply. Matt Raible wrote: Have you thought about doing this with a trigger in your database? Do you need to record the user's information along with this auditing? I've done this with Event Listeners in the past. I'd be quite comfortable with doing it as a trigger, bu

Re: [appfuse-user] Automatic timestamping of all persisted data

2007-12-13 Thread Matt Raible
Have you thought about doing this with a trigger in your database? Do you need to record the user's information along with this auditing? I've done this with Event Listeners in the past. Matt On 12/13/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm using AppFuse 2.0 + Struts2 + Hiberna

[appfuse-user] Automatic timestamping of all persisted data

2007-12-12 Thread Rob Hills
Hi All, I'm using AppFuse 2.0 + Struts2 + Hibernate. I need to timestamp all of my persisted data. I have a base model class that includes a "lastUpdated" attribute and I was hoping to be able to annotate it with something that would tell Hibernate to timestamp it whenever it was saved to the