春季资料中的标准 [英] Criteria in spring data

查看:88
本文介绍了春季资料中的标准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用角度js,spring mvc和spring jpa数据处理Web应用程序。
我想知道是否有类似于标准和detachedcriteria(hibernate)的东西来构建使用spring jpa数据进行高级查询。

I'm working on a web application using angular js, spring mvc and spring jpa data. I'm wondering if there is something similar to criteria and detachedcriteria(hibernate) to build advanced queries with spring jpa data.

推荐答案

是的,您可以使用规格

Yes, you can use Specifications, which basically uses the Criteria API (obviously, since Spring Data JPA is just a wrapper around JPA).

这篇关于春季资料中的标准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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