There is more than 1 to OO, more pairs of 1, more, 1 to 1, four situations, how to handle these four situations? They should pay attention to the following situation 1. If 1 is most The relationship between the file, the details, then the primary is in the clear; delete the master, delete. 2. If you are more, you will delete it, you must delete it in the intermediate table. Currently I I feel that it is best to put relevant processing transaction methods in the ObjectDaoIMPL of 1.