Hibernate (Java) Question:
Download Questions PDF

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.

Download Hibernate Interview Questions And Answers PDF

Previous QuestionNext Question
What is a Session? Can you share a session object between different theads?What are the pros and cons of detached objects?