Some parts of FK are missing

From: Jean-Paul Le Fèvre (lefevr..ep.saclay.cea.fr)
Date: Wed Sep 17 2003 - 09:30:00 EDT

  • Next message: Tore Halset: "JNDIDataSource with JBoss"

    One more time I'm facing difficulties in front of relationship management.
    The link is of type one-to-one between A and B and the reverse relationship
    is enabled. When I try to set up a link between instances a and b
    I got 'Some parts of FK are missing in snapshot'

    Since I don't know exactly how to implement the link I tried many
    different approaches but without success :

    in A :
       b = createAndRegisterNewObject("B");
       b.setA(this); // or b.setAid(this.getId()) id being the oid.
       setB(b); // or setBid(b.getId())
       commitChanges();
       
       gives : CayenneRuntimeException !

    If I do not call 'setB(b)' the exception is not thrown but the link is
    not correctly established : one end is missing.

    -- 
    ___________________________________________________________________
    

    Jean-Paul Le Fèvre * Mail : J-P.LeFevr..ea.fr



    This archive was generated by hypermail 2.0.0 : Wed Sep 17 2003 - 09:25:21 EDT