I have table person in which i wrote the following code

public class person{

private String name;

private String lastName;

@CollectionTable(name = "PHONE")
private Set<Phone> phones;

// getters and setters


in Phone class

public class Phone{
private string number;
private String type;

getters and setter


i have to fetch person record having phone number=xxxxxxxx

Please help me!

Ramandeep Singh