But often queries involve more than one entity, which requires you to join two or more entities.
但是查询通常涉及到多个实体,这就要求您将多个实体连接起来。
Although the examples in Listing 6 and Listing 7 use expressions as the building blocks, the queries are based on a single entity and its attributes.
尽管清单6和清单7中的例子将表达式用作构建块,查询都是基于一个实体及其属性之上的。
All of the named queries have been added as NamedQuery annotations on the entity.
所有已命名的查询在实体上被添加了Named Query注释。
应用推荐