I'm trying out GWT RequestFactory but hit a problem, my entity is an
JPA(Hibernate) and I have a Dao class like this
public abstract class GenericDao<K, E> () {
List<E> list() {
some code to return a list.
}
void persist(E entity) {
entityManager.persist(entity);
}
}
public class MyDao extends GenericDao<String, MyDao> {
}
And I have a service locator as this
public class DaoServiceLocator extends ServiceLcator<xxxx> {
public xxxxx {
return new MyDao();
}
}
All these works fine , the list() method works perfectly, but not
persist method, it throws java.lang.NoSuchMethodError when I am
calling factory.myEntityRequest().persist(entityProxy) , any ideas?