8 Replies Latest reply on Mar 21, 2010 1:26 AM by jaikiran pai

    4.2.2: Referencing a PersistenceContext from within another

    Thomas Bauer Newbie

      Does not work:

      @PersistenceContext(unitName="my-persistence.jar#puName")
      EntityManager em;
      


      Works:
      // Put 3 random characters in front of your jar name!!
      @PersistenceContext(unitName="xxxmy-persistence.jar#puName")
      


      I searched hours for this lil bug!!
      How can you release such a crap?

      Thomas