我在子实体中嵌入了deletePkQuery。如果在根实体中进行修改,则索引的删除工作是完美的。但我需要在theatre_todo表中删除基于is_delete的索引。
<entity name="todo" pk="id" query="select * from todo" deltaQuery="select id FROM todo where
last_modified>'${dataimporter.last_index_time}'"
deletedPkQuery="select id from todo where is_deleted and last_modified < '${dataimporter.last_index_time}' ">
<entity name="theatre_todo" pk="todo_id" query="select theatre_name from theatre_todo where todo_id=${todo.ID}"
deltaQuery="select todo_id from theatre_todo where last_modified > '${dataimporter.last_index_time}'"
deletedPkQuery="select todo_id from theatre_todo where is_deleted and last_modified < '${dataimporter.last_index_time}' "
parentDeltaQuery="select id from todo where id=${theatre_todo.todo_id}">
</entity>
</entity>
提前致谢