Hibernate拦截器(Interceptor)与事件监听器(Listener)

来自ling
跳转至: 导航搜索

https://www.cnblogs.com/otomedaybreak/archive/2012/01/23/2328980.html

https://blog.csdn.net/chenxidong9/article/details/80524500

interceptor的值等于 HibernateInterceptor错在的package位置+类名   

spring.jpa.properties.hibernate.ejb.interceptor=com.smile.config.hibernate.HibernateInterceptor

好了就这样了, 下回再研究多租户和hibernate的审计的功能,还有hibernate search

====================================

最后附上 官网文档http://docs.jboss.org/hibernate/orm/4.3/manual/en-US/html/ch14.html