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?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment