During the execution of a process I open two transactions:
However, after executing the second transaction method, if I query the database the value has not yet been updated. What I expected is that after the execution of the method with the @Transactional annotation is finished, the object is already committed to the database.
The reproduction of the situation is in the project:
https://github.com/emersonl91/quarkus-test
Important lines:
https://github.com/emersonl91/quarkus-tests/blob/master/code-with-quarkus/src/main/java/org/acme/MyService.java#L32
Edit 1:
Edit 2:
Edit 3:
MyEntity.findAll().list().get(0) and the entity remains not updated.Is it similar to this: https://github.com/quarkusio/quarkus/issues/7102?
@zeljkot Yes, it looks very similar to me.
Should we close this issue as duplicate and focus on #7102? Looks like #7188 is also related
@gastaldi i agree
@emersonl91 thanks! Closing as duplicate of #7102
Should we close this issue as duplicate and focus on #7102? Looks like #7188 is also related
@gastaldi if I understood @FroMage correctly, #7188 is a different issue, as discussed in #7102 thread.
Most helpful comment
@gastaldi if I understood @FroMage correctly, #7188 is a different issue, as discussed in #7102 thread.