[英]Spring Data: Deleting entites at the same time using different methods?
Using Spring data
is it possible to run 2 queries at the same time? 使用Spring data
是否可以同时运行2个查询?
I ask as I have 2 query methods that I am calling to delete from the DB. 我问一下,因为我有两种要从数据库中删除的查询方法。
However I cannot run one before the other because it gives me the "ORA-02292 integrity constraint child record found"
error. 但是,我不能先运行一个,因为它给我"ORA-02292 integrity constraint child record found"
错误。
Does the @Async
annotation do what I am asking? @Async
注释@Async
我的要求吗? If so, how do I use it? 如果可以,该如何使用?
As your description, you don't need run 2 queries at the same time. 就像您的描述一样,您不需要同时运行2个查询。 So: 所以:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.