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
> >
>
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
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
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
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
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
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
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