I'm getting the session like this: Session session = (Session)entityManager.getDelegate();
maybe you can define a provider for the session in your guice-module that gets the Session like this and inject it then? Haven't tried this though. Regards On Thu, Dec 1, 2011 at 3:13 PM, beastieboy <[email protected]> wrote: > That would be great to have access in guice-persist to hibernate > specific features like ScrollableResults or Criteria. Is there any > easy way to have org.hibernate.Session injected? The warp-persist > examples did not work for me (@Inject Provider<Session> session). > > -- > 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. > -- 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.
