Getting fault or object

Ricardo Parada <[email protected]> Fri, 24 Oct 2025 09:05:26 -0400
Newsgroups gmane.comp.java.cayenne.user
Message-ID <[email protected]>
Good morning,

I=E2=80=99m looking for the equivalent of the following EOF code:

 var obj =3D EOUtilities.faultWithPrimaryKeyValue(editingContext, entityName=
, id);


What I have so far is:

var objClass =3D oc.getEntityResolver().getClassDescriptor(objEntityName).ge=
tObjectClass();
var obj =3D SelectById.query(objClass, id)
        .localCache()
        .selectOne(oc);

But it seems to fetch the object the first time even though the object alrea=
dy exists in the object context.=20

Thanks in advance,
Ricardo Parada