An equivalent JPQL query would be.
等效的JPQL查询为。
A JPQL query is specified as a String (line 2).
JPQL查询被指定为一个String(第2行)。
Is a in subquery matching multiple columns possible in JPQL?
是一个在子查询匹配多个列可能在JPQL ?
For example, dynamic JPQL queries are not gathered by wsdb2gen.
例如,wsdb2gen就不收集动态JPQL查询。
Contrast the query in Listing 7 with the equivalent (correct) JPQL.
将清单7中的查询与等效(正确)的JPQL进行比较。
Take a look back at this article's original JPQL query (the correct one).
回顾一下本文初始的JPQL查询(正确那个)。
This is similar to constructing an executable query given a JPQL string as input.
这类似于构造一个输入为 JPQL字符串的可执行查询。
The arguments for a query operation are the JPQL string or moniker of a predefined named query.
查询操作的参数是JPQL字符串或预定义名称查询的别名。
EntityManager is the factory that constructs an executable query instance given a JPQL string (line 3).
EntityManager是构造一个包含给定j PQ l字符串的可执行查询实例的工厂(第3行)。
JPA 1.0 introduced JPQL, a powerful query language that's considered a major reason for JPA's popularity.
JPA 1.0引进了JPQL,这是一种强大的查询语言,它在很大程度上导致了JPA的流行。
As mentioned earlier, some SQL might not be generated from the static generator (for example, dynamic JPQL).
正如前面提到过的,静态生成器可能不会生成某些SQL(例如,动态JPQL)。
Querying of the supported datastores can be performed using JDOQL, JPQL or SQL (dependent on the datastore).
可以使用JDOQL、JPQL或者SQL(取决于数据)来查询支持的数据存储。
If this option is unchecked, the JPQL query statements will be used directly inside of the JPA Manager Bean code.
如果该选择没被选中,那么JPQL查询语句将在JPAManager Bean代码中直接使用。
Tip: Clicking each query method will display the JPQL query that will be run when you run that method. (Figure 13).
提示:点击每个QueryMethod将会显示出JPQL查询,该查询当您运行该方法时会随之运行(图13)。
JPQL is a full-featured query language with syntax similar to SQL, but it operates on entities rather than database tables.
JPQL是一种语法上类似于SQL的完备查询语言,但是它是在实体上,而不是在数据库表上进行操作。
The input arguments are query, which is the JPQL string; and params, which is the bound parameter values to the query, each indexed by key.
它是一个JPQL字符串;以及params,它是此查询的绑定参数值,每个按键索引。
JPA provides both a standard mapping definition (through annotations or XML) and a standard runtime API and object-level query language (JPQL).
JPA提供了标准映射定义(通过Annotation或XML)和标准运行时api及对象级查询语言(JPQL)。
CriteriaBuilder has API methods for constructing all kinds of query expressions that are supported in traditional JPQL grammar, plus a few more.
QueryBuilder包含构造传统jpql语法支持的所有查询表达式的API方法,并且还包含额外的方法。
The type-safety feature will provide for much earlier error detection at compile time, rather than at run time with the standard JPQL constructs.
类型安全功能将提供在编译时的早期错误检测,而不是使用标准JPQL 构建时的运行时检测。
Notice that an equivalent query is simply not possible to express in JPQL, because it has a defined grammar with a fixed number of supported expressions.
注意,在JPQL中不能表达等效的查询,因为它的语法仅支持固定数量的表达式。
So far, I have mainly emphasized the strongly typed nature of the Criteria API and the fact that it helps to minimize syntactic errors that can creep into string-based JPQL queries.
到目前为止,我主要强调了CriteriaAPI的强类型,以及它如何帮助减少出现在基于字符串JPQL查询中的语义错误。
The error will be encountered at run time at line 3 or line 4 (depending on whether the JPA provider parses a JPQL string according to JPQL grammar during query construction or execution).
在运行时,该错误将出现在第 3或第 4行(具体行数取决于JPA提供者是否在查询构造或执行期间根据JPQL语法解析 JPQL字符串)。
In a JPQL query, the parameters are encoded in the query string as either named (preceded by a colon - for example, : age) or positional (preceded by a question mark - for example,? 3).
在JPQL查询中,查询字符串中的参数以命名方式(前面带有冒号,例如:age)或位置方式(前面带有问号,例如?3)编码。
Effectively, the code will compile happily, but it will fail at run time because the JPQL query string is syntactically incorrect. The correct syntax for the second line of Listing 1 is.
该代码能够顺利通过编译,但将在运行时失败,因为该JPQL查询字符串的语法有误。
The persistence module includes JPA version 2.0 (JSR 317) which has several enhancements to JPQL and offers a new Criteria API which can be used for dynamically constructing object-based queries.
持久化模块包括JPA 2.0 (JSR 317),JPA 2.0对JPQL有几点增强,还提供了新的CriteriaAPI,可动态创建基于对象的查询。
The persistence module includes JPA version 2.0 (JSR 317) which has several enhancements to JPQL and offers a new Criteria API which can be used for dynamically constructing object-based queries.
持久化模块包括JPA 2.0 (JSR 317),JPA 2.0对JPQL有几点增强,还提供了新的CriteriaAPI,可动态创建基于对象的查询。
应用推荐