Cascade deletion of Java: comments such as @ OneToMany, etc., how to do my pseudo deletion

cascading deletions are actually performed

but in practice, it is this kind of pseudo deletion that creates flag and assigns 0,1

.

is there a callback method that can handle the logic of deletion? Only in this way can we write custom delete logic

how do you deal with similar problems

-split line-

assume that my entity class is Parent, and use @ SQLDelete to modify it
clipboard.png
@ SQLDeleteAll, @ SQLInsert, @ SQLUpdate

Mar.01,2021

this is a tricky question, the difference between physical deletion and tag deletion. This kind of scene is frequently used in practical work, and it is realized directly through update

without delving into it.
Menu