generate_entity
Generate a JPA entity class with Lombok, audit fields, and proper mappings based on class name and field specifications.
Instructions
Generate a JPA Entity class with Lombok annotations, audit fields, and proper mappings
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": {
"className": "<className>",
"fields": "<fields>"
},
"name": "generate_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Entity fields | |
| className | Yes | Entity class name in PascalCase, e.g. 'Product' | |
| tableName | No | Database table name. Defaults to snake_case of className | |
| withAudit | No | Include createdAt/updatedAt audit fields | |
| packageName | No | Base package name | com.example.demo |
| withSoftDelete | No | Include soft delete (deleted flag) |