How to deep copy a Hibernate entity while using a newly generated entity identifier

前端 未结 9 692
抹茶落季
抹茶落季 2020-12-30 20:05

I\'m using a relational DB using a single column pk with a few nested tables.

I need to add a simple archiving to my project. The archiving only happens when the appl

9条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-30 20:52

    Have a look at following link. one of the most powerful cloning mechanism which can be utilized in most effective fashion with hibernate

    https://thoughtfulsoftware.blogspot.com/2013/05/using-variable-depth-copy-to-prevent.html

提交回复
热议问题