Replies: 1 comment 9 replies
-
Are you using the quarkus-jooq extension? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Jooq is used mainly in our application. Additionally we use the oubox package which uses
eintityManager
.An interesting thing happens when we want to test our solution for the oubox-pattern.
The test cases are annotated with
@TestTransaction
and of course somewhere in the application, there is an@Transactional
annotation to ensure the single transaction is done because of the outbox-pattern. If the oubox table is queried with native query the tests give the expected result.
If the oubox table is queried with jooq the test give not the expected result. Quite precisely, it looks like the outbox table is empty. The result of the query does not return any records.
Why is there a difference between native query and jooq?
Of course, remove is turned off during testing.
%test.quarkus.debezium-outbox.remove-after-insert = false
Beta Was this translation helpful? Give feedback.
All reactions