Hi,
I have some Exceptions where I use LazyEntityContainer :
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at org.vaadin.addons.lazyquerycontainer.EntityQuery.(EntityQuery.java:61)
at org.vaadin.addons.lazyquerycontainer.EntityQueryFactory.constructQuery(EntityQueryFactory.java:60)
at org.vaadin.addons.lazyquerycontainer.LazyQueryView.getQuery(LazyQueryView.java:401)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:508)
…
Here is some parts of my code :
private LazyEntityContainer containerBouteille;
…
containerBouteille = new LazyEntityContainer(em, Bouteille.class, 2, “id”, false, false, false);
tableBouteille = new Table(“My Table Binded”, containerBouteille);
tableBouteille.setImmediate(true);
tableBouteille.setSelectable(true);
Bouteille b = containerBouteille.addEntity();
b.setName(“name”);
b.setQuantity(5);
containerBouteille.commit();
containerBouteille.refresh();
So I need some help.
Can someone give me some example of how to use it or a link to page where it is shown, please ?
Thanks.