hi,
i have a problem with jpacontainer and vaadin 7. I have a Menuentity like this:
@Entity
@Table(name = "menu")
public class Menu extends BaseEntity implements Serializable { // BaseEntity has id, uuid etc...
@Column(name = "display_name", nullable = false, length = 45)
private String displayName;
@Column(nullable = false)
private short folder;
@Column(nullable = false)
private int parent;
@Column(nullable = false)
private int position;
@Column(name = "programm_name", length = 45)
private String programmName;
@OneToMany(mappedBy = "menu")
private List<MenuRolle> menuRolles;
public Menu() {
}
getter ..... setter....
and a jpacontainersection like this:
ComboBox menuCB = new ComboBox();
menuContainer = JPAContainerFactory.makeReadOnly(Menu.class, dao.getEntityManager());
menuCB.setContainerDataSource(menuContainer);
menuCB.setCaption("Caption");
menuCB.setPropertyDataSource(new SingleSelectTranslator(menuCB));
menuCB.setItemCaptionPropertyId("displayName");
and i get the following error: [com.vaadin.Application]
(http-localhost-127.0.0.1-8080-2) Terminal error:: java.lang.NoClassDefFoundError: com/vaadin/data/Property$ConversionException
thank you!