Hi


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

@Embeddable
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!

Thanks
Ramandeep Singh