-
Hi, I've setup a repo(https://github.com/zanella/quarkus-TestTransaction/blob/main/src/test/kotlin/com/example/ServiceTest.kt#L30) which reproduces an issue I'm having on a real codebase:
The test
Can anyone shed a light on why there's a difference here ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
/cc @evanchooly (kotlin), @geoand (kotlin) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Your method
In practice, this means the code after the call to Anyway... This is more a Hibernate ORM problem than a Quarkus problem. |
Beta Was this translation helpful? Give feedback.
I explained that behavior above. When not in a transaction the outer code and the code in
f
don't use the same session, so they don't use the same cache.No, the fact that you use caches in one case and not the other is completely expected behavior.
Yes it's about (first-level) caches.