问题
As there are 3 states of objects in hibernate
- Transient
- persistent
- 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