Here is a part of my Person class:
@Entity
public class Person {
@ElementCollection(fetch = FetchType.EAGER)
private Map<String, String> externalPropertyMap = new HashMap<>();
}
So i need to select every Person with exact key and value from this map. For example select every Person with key="prefferedNumber"
and value="123456"
How can i do this?