【发布时间】:2015-11-25 01:21:40
【问题描述】:
我有一项服务必须按顺序执行以下步骤。
1) insert database records
2) commit
3) call external service (This service need to see the inserts in step 1)
4) more inserts
5) commit
目前外部服务无法看到插入的行。 请建议如何在外部调用之前进行提交。我正在使用 Spring JPA/Hibernate。
谢谢
【问题讨论】: