What is the benefit of detached object? What value do they provide? Thanks.
+4
A:
When you need to keep a object "alive" between distinct hibernate sessions. Example: in web applications, if you're using the session-per-request pattern, and you need to keep the same hibernate entity between many pages.
Please take a look at the Hibernate docs:
rsenna
2010-10-26 22:32:10