c Set&#060;PhoneNumber&#062; getPhones() { return phones; }

    // In PhoneNumber class:

    &#064;ManyToMany(mappedBy="phones")
    public Set&#060;Customer&#062; getCustomers() { return customers; }

    Example 2:

    // In Customer class:

    &#064;ManyToMany(targetEntity=com.acme.PhoneNumber.class)
    public Set getPhones() { return phones; }

    // In PhoneNumber class:

    &#064;ManyToMany(targetEntity=com.acme.Customer.class, mappedBy="phones")
    public Set getCustomers() { return customers