generate_repository
Generate Spring Data JPA repositories with custom query methods to eliminate boilerplate data access code.
Instructions
Generate a Spring Data JPA Repository with custom query methods
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entityName": "<entityName>"
},
"name": "generate_repository"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| idType | No | ID field type | Long |
| entityName | Yes | Entity name in PascalCase | |
| packageName | No | Base package name | com.example.demo |
| customQueries | No | Custom query methods | |
| withSpecification | No | Extend JpaSpecificationExecutor for dynamic queries |