我有一个字符串列表,我需要在我的表中搜索它们然后构造新的包含键作为我的搜索字符串和值作为我的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
我需要选择识别键中的每个识别键甚至不存在