【问题标题】:Spring JPA hibernate4 interceptorSpring JPA hibernate4 拦截器
【发布时间】:2014-09-11 19:06:16
【问题描述】:

如果我编写一个扩展 EmptyInterceptor 的类,我应该使用什么注释。

有没有人可以指点我的例子。我应该使用 Hibernate 的 EmptyInterceptor 还是 spring 有其他一些我应该使用的类

谢谢

【问题讨论】:

标签: java spring hibernate jpa interceptor


【解决方案1】:

hibernate 文档在Chapter 14. Interceptors and events 有关于如何使用拦截器的示例,而当涉及到 Hibernate 时,我猜没有提供拦截器。

关于使用 Spring 为 Hibernate 拦截器使用注解,你可以看看这篇文章 - Use Spring annotations to automatically apply Hibernate Interceptor?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-08-09
    • 2020-05-20
    • 2014-05-19
    • 2017-02-25
    • 1970-01-01
    • 2017-02-01
    • 1970-01-01
    • 2015-10-21
    相关资源
    最近更新 更多