【问题标题】:Is there generic Specification for JPASpecificationExecutor to use in Web是否有 JPASpecificationExecutor 的通用规范可在 Web 中使用
【发布时间】:2014-01-10 10:12:25
【问题描述】:

Spring Data 通过 PageableHandlerMethodArgumentResolver 对 Web 上的 Pageable 发送提供原生 Web 支持,作为 HTML Query 中的参数。

我还没有找到 JPA 规范执行者,从我的角度来看这将非常有用。

有吗?

【问题讨论】:

    标签: jpa orm spring-data spring-data-jpa


    【解决方案1】:

    没有可供您使用的通用谓词的原因是您在其中构建的谓词完全取决于您的域模型。关于如何将 Specifications 与 Spring MVC 一起使用的一个很好的例子可以在 this question 的答案中找到。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-14
      • 2020-03-23
      • 2019-06-09
      • 1970-01-01
      • 2019-03-29
      • 2011-09-10
      • 1970-01-01
      相关资源
      最近更新 更多