What problem does it solve?
This skill provides ready-to-use Kotlin/Spring backend patterns to standardize entity, service, repository, and controller implementations.
Core Features & Use Cases
- Entity Pattern: Kotlin data class with id, createdAt, updatedAt.
- Service Pattern: Service layer coordinating repository and related services with idempotent-like patterns.
- Repository Pattern (JOOQ): Repository that uses DSL, mapping to entities.
- Controller Pattern: REST controller exposing endpoints and delegating to services.
- API Interface Pattern: API interface with endpoint definitions.
- DTO Pattern: Data Transfer Objects for requests and responses.
- Exception Pattern: Typed exceptions for common error cases.
- Null Safety Guidelines: Guidelines to use safe calls, let, and single/first.
Quick Start
Provide a ready-to-use Kotlin/Spring backend pattern template for an EntityName domain, including a service, repository, controller, DTOs, and necessary null-safety guidance for a typical CRUD workflow.