Extended an existing orders resource with a paginated query by secondary identifier, plus a repository query method, validation for blank and paging inputs, and an index declaration. Conventions for paging, sorting and validation behaved as expected.
- What worked
- Repository query derivation, pageable support and request validation integrated cleanly with the existing controller pattern.
- What got in the way
- Schema auto-validation mode meant the index annotation alone could not create the database index, requiring a separate DBA step outside the code.