well.. Hibernate provides transparent persistence,that doesnt mean we dont have to use save, update,or delete methods of the hibernate session, when you want to do some persistence operation.By saying transparent persistence, what hibernate does is,it simply expects you to issue the command(intention) without bothering you with all the JDBC details such as Preparedstatement,connection, result set etc...If you understand this , then you will realize that retain and restore decsribed in this article essentially falls into that category because it simply expects the command (retain or restore) , but does the job for you
As to why we need servlet filter, you should suggest an alternate mechanism to update your request object after it reaches the proxy action |