4 Replies Latest reply on May 18, 2002 1:16 PM by julien1

    cmr field not set in ejbPostCreate()

      Hi everybody,

      I have the following entity beans : A and B with
      a 1-1 relationship.

      in A I have the following code :

      public void ejbPostCreate(..)
      {
      B b = BHome.create(..);
      setB(b);
      }

      The problem is that the inserted row has a NULL field
      in the table where it shall have b primary key.

      Subsequently a.getB() gives me a null reference.

      I am using 3.0RC2 d/l on sourceforge.

      thank you, Julien