• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Interceptors

 
paul king
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Basically I want to update my database with creation and modification date/time values. I've tried looking for good examples of doing this but they are quite difficult to follow and don't seem to explain everything.
Does anybody know any good tutorials/examples etc?

Thanks

Paul

 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey

you can have a look at this entry i wrote a while ago:
http://downside.ch/blog/?p=51

there are easier ways to do! but we can not use <timestamp> for optimistic locking. also check out this entry and especialy the comment by anthony from the hibernate forums:
http://forums.hibernate.org/viewtopic.php?t=934675&highlight=&sid=c7c5534dd31b6247015dc697f870ee20


did that help ?

pascal
 
paul king
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Yes it helped alot. Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic