getFirstResult() - JPA Query's method
Method javax.persistence.Query
int getFirstResult()
The position of the first result the query object was set to retrieve. Returns 0 if
setFirstResult
was not applied to the query object. - Returns:
- position of the first result
- Since:
- JPA 2.0
Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual.