是否有用于Web的JPASpecificationExecutor通用规范 [英] Is there generic Specification for JPASpecificationExecutor to use in Web

查看:76
本文介绍了是否有用于Web的JPASpecificationExecutor通用规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring Data通过PageableHandlerMethodArgumentResolver作为HTML查询中的参数,对Web上的Pageable发送具有本地Web支持.

Spring Data has a native web support for Pageable send over the web, as parameters in HTML Query, through PageableHandlerMethodArgumentResolver.

我还没有为此找到JPA规范执行器,从我的角度来看,这将非常有用.

I have not found JPA Specification executor for that, which from my point of view would be very useful.

有一个吗?

推荐答案

之所以没有通用的可用谓词,是因为您在其中构建的谓词完全取决于您的域模型.在

The reason that there's no generic one available for you is that the predicates you build in it is completely depending on your domain model. A good example for how to use Specifications with Spring MVC can be found in the answer to this question.

这篇关于是否有用于Web的JPASpecificationExecutor通用规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆