Questions tagged «named-query»

2
JPQL IN子句:Java数组(或列表,集合…)?
我想从数据库中加载所有设置了文本标签的对象,这些标签设置为少量但任意数量的值。在SQL中执行此操作的逻辑方法是建立“ IN”子句。JPQL允许IN,但是似乎要求我直接为IN指定每个单个参数(例如,“ in(:in1,:in2,:in3)”)。 是否有某种方法可以指定应展开为IN子句值的数组或列表(或其他容器)?
108 sql  orm  jpa  jpql  named-query 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.