79764286

Date: 2025-09-14 11:55:03
Score: 1.5
Natty:
Report link

I suggest registering an interceptor that overwrites the findDirty Method. From then on, the is a few things I can imagine. Judge yourself which one helps and which one is too dirty :-)

  1. first idea: Just use it for logging debug information. Compare the current and previous state and log it
  2. second idea: My guess is that the collection is considered dirty, maybe because of ordering.... who knows? So maybe make a custom implementation to check for changes
  3. third idea: Maybe you could just not go the route of @PrePersist callback method, but actually set the audit fiels in the interceptor. If it's dirty, then set the 2 fields.

would love to hear feedback if the third idea works.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @PrePersist
Posted by: EasterBunnyBugSmasher