I am using DetachedCriteria, I only want the first result of the query, so I want to do something like LIMIT in DetachedCriteria 1. When I search Google, I found setMaxResult but It’s standard.
I am using DetachedCriteria, I only want the first result of the query, so I want to do something like LIMIT in DetachedCriteria 1. When I search Google, I found setMaxResult but It’s standard.