#Spring Envers testing - how to get audit entries without committing the transaction

1 messages · Page 1 of 1 (latest)

ocean kindle
#

Hi, - Spring Envers will insert entries only on completion of transaction (no, entity manager flush won't do it), I don't want that in test, because I want to keep DB clean
Does anyone know if I can force it to write them out without committing the transaction?

humble orioleBOT
#

<@&1004656351647117403> please have a look, thanks.

humble orioleBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

ocean kindle
#

Thank you CharGPT - that is why I am asking if I can "force" it...

ocean kindle
#

Nevermind, I excluded the test from transaction and just called deleteAll on all repos it used in finally block