How do I retrieve a record with two fields for PK

From: Frank (farocc..otmail.com)
Date: Wed Feb 14 2007 - 11:41:27 EST

  • Next message: Frank: "Cayenne doc link failure"

    Hello,

    I have this defined:
    DataContext context = DataContext.getThreadDataContext();
    Bsypemp emp = null;
    emp = (Bsypemp) DataObjectUtils.objectForPK(context, Bsypemp.class, id);

    my problem is that the PK consists of two fields EMHSP# & EMEMP

    What is the correct syntax for getting a record?

    Thanks

    Frank



    This archive was generated by hypermail 2.0.0 : Wed Feb 14 2007 - 11:42:02 EST