jpa选择在where子句中找到的字符串

时间:2014-12-06 17:18:14

标签: jpa

我有一个字符串列表,我需要在我的表中搜索它们然后构造新的包含键作为我的搜索字符串和值作为我的pojo如果存在或如果不存在则为null。

类似的东西:

Class MyMapper {

    private String identificationKey;
    private User user;
    // Getter and Setter

}

我的预期查询:

SELECT NEW MyMapper(identificationKey, u) From User u where u.identification IN :identificationKeys

我需要选择识别键中的每个识别键甚至不存在

0 个答案:

没有答案