Best way to update some fields of a detached object on Hibernate?

后端 未结 3 1044
说谎
说谎 2020-12-29 11:50

I was wondering what\'s the best way to update some fields of a dettached object using HB on Java. Specially when the object has child objects attributes. For Example (annot

3条回答
  •  一整个雨季
    2020-12-29 12:43

    You can modify the detached object directly and then reattach the object to the session using the merge method on the session.

提交回复
热议问题