简体   繁体   中英

Spring JPA hibernate4 interceptor

What annotation should I be using if I write a class which extends EmptyInterceptor.

Is there an example that somebody can point me. Should I be using Hibernate's EmptyInterceptor or does spring has some other class that I should be using

thanks

The hibernate document has example on how to use the interceptors at Chapter 14. Interceptors and events and when it comes to Hibernate there are no interceptors provided I guess.

For using annotations using Spring for Hibernate interceptors, you can have a look at this post - Use Spring annotations to automatically apply Hibernate Interceptor?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM