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

    cmr field not set in ejbPostCreate()

    Viet Master

      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