Hooks for audit generation

Ricardo Parada <[email protected]> Wed, 8 Oct 2025 10:57:40 -0400
Newsgroups gmane.comp.java.cayenne.user
Message-ID <[email protected]>
Good morning,

I=E2=80=99m looking into replacing our framework developed for EOF that can g=
enerated an audit document describing what database operations are performed=
 when saveChanges() is called.=20

We capture the object identity, its entity and attributes changed including b=
efore and after values.=20

I=E2=80=99m trying to do hook into Cayenne right now to just print the entit=
ies changed and the attributes before and after values to explore how we wou=
ld do this in Cayenne.=20

ChatGPT suggested implementing DataChannelSyncFilter and adding a module to s=
et it up during configuration. It looks pretty close to what I need except i=
t does not compile. So it may be hallucinating.=20

I would prefer if the hook can be set up right there before calling commitCh=
anges(). Because not everything is audited.=20

Thanks in advance,
Ricardo Parada