Converting Detached object to persistent

巧了我就是萌 提交于 2019-12-12 04:33:31

问题


As there are 3 states of objects in hibernate

  1. Transient
  2. persistent
  3. detached

I know Transient state object can be converted to persistent once it it persisted by attaching it to a session Can it be done with detached objects also? or detached object has no life in hibernate context as there is no record of it in the cache?

来源:https://stackoverflow.com/questions/41229034/converting-detached-object-to-persistent

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!