Question: .When to use detached criteria in hibernate?
When to use detached criteria in hibernate?
Detached Criteria query is a facility provide by Hibernate to write criteria queries in detached mode, where hibernate session is not available. After writing detached Criteria query you can obtain Criteria by passing session to getExecutableCriteria().
For more detail click here.