1 Reply Latest reply on Feb 1, 2008 1:50 AM by Nicklas Karlsson

    Using @In to get the Hibernate session

    Eric H Novice

      I'm using SMPC, and Hibernate is the underlying provider. I can't live without Criteria queries. Is it reasonable to do this:

      @In("#{entityManager.delegate}")
       private Session session;


      ?

      My entire app won't work without using Hibernate as the provider, and I need to use getDelegate() anyway, so any reason not to do it that way? Does the SMPC figure everything out when I use EL to do getDelegate() like that?

      Thanks