Interceptors in Hibernate
by Krishna Srinivasan
A Hibernate application can be structured in a way such that certain methods can be make to be invoked when a particular life-cycle event occurs. Not always the API in a software/product will completely satisfy the application needs and requirements. Hibernate is no more away from this. Therefore, Hibernate API is designed in such a way to provide pluggable framework through the notion of Interceptors.
As we can see, the maintenance of this logging information should happen whenever when an insert/update goes to the Database. Such a logger interceptor can be easily plugged into the application with minimal code change because of the flexible design of Hibernate. Shunmuga Raja writes about Inteceptors in Hibernate here.
Interceptors in Hibernate.
Introduction to Java Server Faces
In this book there are lotof things we have to learn......
|If you're going to copy verbatim the first three paragraphs of an article, at least fix the grammer. "Hibernate is no more away from this."|
|I thought usage of Validatable and Lifecycle interfaces was not encouraged anymore by the hibernate team...|
There is a lot to learn alright.. mostly in presentation for the folks presenting the article.
I'm a little leery of following advice from a site that can't even present their info in a readable manner.