hibernate - How to set max result in DetachedCriteria?
===

I am using DetachedCriteria and I just want the first result of the query so I want to do something like `LIMIT 1` in DetachedCriteria. When I searched google I found `setMaxResult` but its Criteria. How am I gonna do it in DetachedCriteria?

Please help. Thanks in advance.