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
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) |