A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS
MIT License
524
stars
86
forks
source link
When i use Propagation.NESTED, serializable not work #47
I write a method A with transaction SERIALIZABLE in my code, and it works as my expect. However, When I add another method B with transaction Propagation.NESTED, and A calls B. I found the transaction A not work like SERIALIZABLE.
This is my code.
I write a method A with transaction
SERIALIZABLE
in my code, and it works as my expect. However, When I add another method B with transactionPropagation.NESTED
, and A calls B. I found the transaction A not work like SERIALIZABLE. This is my code.