Hibernate (Java) Question:

Download Job Interview Questions and Answers PDF

What are the benefits of detached objects?

Hibernate Interview Question
Hibernate Interview Question

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?