I found the solution, it's detailed here <https://stackoverflow.com/a/66835929/201359>. TL;DR: the @Transactional annotation was not being executed in the second version of my code, as a workaround I had to implement transaction management by hand. It seems that I stumbled into a Guice bug?
-- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-guice+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-guice/21b58132-2300-4a08-b48c-5cddb0ca897bn%40googlegroups.com.