Why does the DAO have separate creation and update methods?

I am considering a couple of projects for DAO interfaces. One has one method update(), and the other has separate methods create()and update().

Assuming something can be done according to the “insert otherwise”, what effect does the separate method have create()? Is there anything to do with concurrency there?

Thanks in advance for your help.

Cheers, Ross

+3
source share
1 answer

I use two different methods when creating a DAO just for Clarity and Explicitness.

, - , . , , , ?

, .

+6

Source: https://habr.com/ru/post/1757870/


All Articles