@Test public void testGetIms() { String jpql = "select o from Person o join o.ims i where KEY(i) = :imType and i = :im"; EntityRepository repository = InstanceFactory.getInstance(EntityRepository.class); List<Person> persons = repository.createJpqlQuery(jpql) .addParameter("imType", ImType.QQ).addParameter("im", "666666").list(); assertFalse(persons.contains(person1)); assertTrue(persons.contains(person2)); }
public Map<ImType, String> getIms() { return Collections.unmodifiableMap(ims); }
Person extends AbstractEntity { public Map<ImType, String> getIms() { return Collections.unmodifiableMap(ims); } }
Person extends AbstractEntity { public Map<ImType, String> getIms() { return Collections.unmodifiableMap(ims); }  }
Person extends AbstractEntity { public Map<ImType, String> getIms() { return Collections.unmodifiableMap(ims); }  PersonName getName(); void setName(PersonName name); String getIdNumber(); void setIdNumber(String idNumber); Set<Email> getEmails(); void setEmails(Set<Email> emails); void addEmail(Email email); void removeEmail(Email email); Map<ImType, String> getIms(); void setIms(Map<ImType, String> ims); void setIm(ImType imType, String imAddress); void removeIm(ImType imType); Address getHomeAddress(); void setHomeAddress(Address homeAddress); Address getMailAddress(); void setMailAddress(Address mailAddress); @Override String[] businessKeys(); @Override String toString(); }
Person extends AbstractEntity { public Map<ImType, String> getIms() { return Collections.unmodifiableMap(ims); }  PersonName getName(); void setName(PersonName name); String getIdNumber(); void setIdNumber(String idNumber); Set<Email> getEmails(); void setEmails(Set<Email> emails); void addEmail(Email email); void removeEmail(Email email); Map<ImType, String> getIms(); void setIms(Map<ImType, String> ims); void setIm(ImType imType, String imAddress); void removeIm(ImType imType); Address getHomeAddress(); void setHomeAddress(Address homeAddress); Address getMailAddress(); void setMailAddress(Address mailAddress); @Override String[] businessKeys(); @Override String toString();  }