My guess is that you'd need to create the appropriate Names class like so:
Code:
@Entity
public class Name implements Serializable
{
// you'll also need an ID generator or natural composite or something
private Person person;
private String name;
@ManyToOne
public Person getPerson() { return person; }
public void setPerson(final Person person) { this.person = person }
public String getName() { return name; }
public void setName(final String name{ this.this = name }
}
Then, in your person class the following should do the trick
Code:
@Entity
public class Person {
private Collection<Name> names;
@OneToMany
@JoinColumn(...)
public Collection<Name> getNames() {
return names;
}
public void setNames(Collection<Name> names) {
this.names = names;
}
}
If you want to maintain proper relational integrity, you'll have to use this model since the names table would need to be joined appropriately to get the names.