1 Reply Latest reply on Oct 26, 2005 1:32 PM by bill.burke

    Criteria objects with EJB3

    binario

      Hi all,

      I want to know how to use hibernate detached Criteria objects with ejb3.

      I have a struts action. I want to create a Detatched criteria object and pass it into a session bean method. Can someone show me an example of how to do this?

      thanks very much,
      Brian

        • 1. Re: Criteria objects with EJB3
          bill.burke

          Have you seen our Hibernate integration with EJB3? You can easily convert an EntityManager to a Hibernate Session, or you can inject a Hibernate Session directly using the @PersistenceContext annotation.