Hi all,
I was wondering if anyone has tried generating a form with JPAContainer’s FieldFactory in which the resultant Master-Detail Editor has an enum in one of its column.
I had supposed that a Select type field would appear in the enum column but a Table appears instead.
My Beans are the following:
Person
@Entity
public class Person implements Serializable {
[...]
@OneToMany(cascade = { CascadeType.PERSIST })
private Set<ContactInfo> contactInfo;
[...]
}
ContactInfo
@Entity
public class ContactInfo {
[...]
@NotNull
@Enumerated(EnumType.STRING)
private ContactInfoType type;
@NotNull
private String value;
[...]
}
ContactInfpType
public enum ContactInfoType {
TELEPHONE, MOBILE, FAX, EMAIL, WHATSAPP, GOGGLE_TALK, MSN_MESSENGER, FACEBOOK, TWITTER, WEBSITE;
}