findFirst3ByStatusOrderByCreatedDateDescString
findFirst3BySt is a method name convention used in Spring Data JPA repositories to automatically generate database queries based on the method signature. The prefix “find” indicates a read operation, and the “First3” portion requests that only the first three matching records be returned, with the ordering implicitly defined by additional clauses such as OrderBy or a default column. The remaining part, often starting with “St”, typically refers to a field in the entity, for example “Status”. A complete method might be findFirst3ByStatusOrderByCreatedDateDesc, which would retrieve the three most recent records whose status matches a given value.
This convention is part of Spring Data JPA’s query derivation mechanism, which parses the method name, extracts
Using a numeric limit like 3 is useful for pagination, previews, or performance optimisation when only a