Hi,
i'm trying to configure a app using Wicket + Guice 3.0 + Guice-Persist
3.0
I Have a Module:
public class EventosModule extends AbstractModule {
public final static String persistenceUnit = "eventosImpa";
public void configure() {
install(new JpaPersistModule(persistenceUnit));
}
}
Store:
@Singleton
public class EventoStoreImpl implements EventoStore {
@Inject
private Provider<EntityManager> entityManager;
@Transactional
public void save(Evento object) {
entityManager.get().persist(object);
}
}
When i try to execute my app i got this error:
1) No implementation for javax.persistence.EntityManager was bound.
while locating
com.google.inject.Provider<javax.persistence.EntityManager>
for field at
br.impa.apps.eventos.store.impl.EventoStoreImpl.entityManager(EventoStoreImpl.java:
21)
Can anyone help me?
--
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en.