Hello. I Jave problem with JPAContainer and @ManyToMany property. I my code I have :
@Entity
public class User
{
@ManyToMany( cascade = CascadeType.ALL, fetch = FetchType.LAZY )
@JoinTable( name = "Groups_Users",
joinColumns = { @JoinColumn( name="user_id" ) },
inverseJoinColumns = { @JoinColumn( name="group_id" ) }
)
private List< Group > groups;
}
How create field in form for
groups
property? I would like to allow Add and Delete elements from list.
I try find soulutions in
com.vaadin.addon.jpacontainer.fieldfactory.FieldFactory
but in my opinion this class doesn’t support @JoinTable adnotation.
Thank you for any sugesstions