cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank" <faro...@hotmail.com>
Subject How do I retrieve a record with two fields for PK
Date Wed, 14 Feb 2007 16:41:27 GMT
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

Mime
View raw message