Hibernate (Java) Question:
What are the benefits of detached objects?
Answer:
Detached objects can be passed across layers all the way up to the presentation layer without having to use any DTOs (Data Transfer Objects). You can later on re-attach the detached objects to another session.
Previous Question | Next Question |
What is a Session? Can you share a session object between different theads? | What are the pros and cons of detached objects? |