Re: T5: wiki: automatic time stamping with hibernate and tapestry-hibernate

2008-01-19 Thread Ted Steen
Inject RequestGlobals into the EntityInterceptor and do requestGlobals.getHTTPServletRequest().getRemoteAddr() to get the ip. 2008/1/20, Sven Homburg <[EMAIL PROTECTED]>: > thats were my next question: > > how can i realize the transfer of the clientip from tapestry session to the > interceptor ?

Re: T5: wiki: automatic time stamping with hibernate and tapestry-hibernate

2008-01-19 Thread Sven Homburg
thats were my next question: how can i realize the transfer of the clientip from tapestry session to the interceptor ? 2008/1/20, Ted Steen <[EMAIL PROTECTED]>: > > Or clientIp, good stuff! > > 2008/1/20, Davor Hrg <[EMAIL PROTECTED]>: > > Very nice :) > > user_id: created_by, modified_by can al

Re: T5: wiki: automatic time stamping with hibernate and tapestry-hibernate

2008-01-19 Thread Ted Steen
Or clientIp, good stuff! 2008/1/20, Davor Hrg <[EMAIL PROTECTED]>: > Very nice :) > user_id: created_by, modified_by can also be added this way :) > > Davor Hrg > > On Jan 19, 2008 8:09 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > > Hello all. > > > > I'm writing to share a link to a wiki I just

Re: T5: wiki: automatic time stamping with hibernate and tapestry-hibernate

2008-01-19 Thread Davor Hrg
Very nice :) user_id: created_by, modified_by can also be added this way :) Davor Hrg On Jan 19, 2008 8:09 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Hello all. > > I'm writing to share a link to a wiki I just posted about getting some > auto-magic behavior for entities via tapestry-hibernate.

T5: wiki: automatic time stamping with hibernate and tapestry-hibernate

2008-01-19 Thread Chris Lewis
Hello all. I'm writing to share a link to a wiki I just posted about getting some auto-magic behavior for entities via tapestry-hibernate. Using this quick method you can simply add 'created' and/or 'modified' fields (of type java.util.Date) to your entity classes and they will be updated pro