Pergunta

I followed this tutorial and decided to use Gilead to avoid writing DTO boilerplate.

But with no success yet. I did as tutorial advices:

  1. Made my POJO on server side extend net.sf.gilead.pojo.java5.LightEntity

    public class Attachment extends LightEntity implements Serializable { ... }

  2. Made my server-side service implementation extend net.sf.gilead.gwt.PersistentRemoteService

    public class LoginServiceImpl extends PersistentRemoteService implements LoginService { ...}

  3. Configured beanManager exactly as in tutorial.

When I tried to use server-side class, that extends Gilead's LightEntity, I get error as If there were no Gilead, just restricted server code.

Here are JARs I included to my build path:

alt text

Nenhuma solução correta

Outras dicas

change your MusicStoreServiceImpl() to

public MusicStoreServiceImpl() {
gileadHibernateUtil.setSessionFactory(com.google.musicstore.util.HibernateUtil
    .getSessionFactory());

PersistentBeanManager persistentBeanManager = new PersistentBeanManager();
persistentBeanManager.setPersistenceUtil(gileadHibernateUtil);
StatelessProxyStore sps = new StatelessProxyStore();
sps.setProxySerializer(new GwtProxySerialization());
persistentBeanManager.setProxyStore(sps);
setBeanManager(persistentBeanManager);

}

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top