What is the best way to Update only 1 field of a big Business Object inside a transaction?

前端 未结 2 632
感动是毒
感动是毒 2021-01-07 13:06

I am in a situation where I have to perform a transaction master detail record (Drop prev details, insert new details, Update Master status)

  1. <
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-07 14:01

    Create DTO with those 4 fields. UI will send this DTO to business layer which will use new values to modify business object. Than you persist that modified business object.

提交回复
热议问题