Is there generic Specification for JPASpecificationExecutor to use in Web

淺唱寂寞╮ 提交于 2020-01-23 18:24:21

问题


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

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

Is there one?


回答1:


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.



来源:https://stackoverflow.com/questions/20722419/is-there-generic-specification-for-jpaspecificationexecutor-to-use-in-web

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!