I have a class User that can have many loginNames:
@Entity public class User { @ElementCollection private List<String> logins = new ArrayList<String>(); }