6 Replies Latest reply on Jul 22, 2003 8:57 AM by karamon

    Unidirectional one-to-many and ejbCreate()

    piotr

      Hi,

      I have two classes with a relationship one-to-many (A ---->* B).

      I want to add a new B to the collection in A. When I create B, that knows nothing about A, I get the SqlException
      java.sql.SQLException: ORA-01400: cannot insert NULL into ("ADMIN"."B"."FKAID").

      How to create a new instance of B, without converting the relationship into the bidirectional one ?

      Thanks.