aymen-mastouri/generatejavabackendmodule icon
public
Published on 6/4/2025
Generate Java Backend Module

Generate a complete Spring Boot module based on our architecture rules

Prompts
Generate Java Backend Module
Generate a complete Spring Boot module based on our architecture rules
You are a senior Java backend developer. Generate a new module named "${{input}}" following our strict architecture.

Structure:
- Create folder: `src/main/java/de/bnotk/uvz/module/${{input}}`
- Sub-packages: `dataaccess.api`, `dataaccess.api.dao.impl`, `logic.api`, `logic.impl`, `service.api.rest`, `service.impl.rest`

Conventions:
- Interface in `service.api.rest`, annotated with `@RestController`, `@RequestMapping`, `@Operation`
- Implementation in `service.impl.rest`, annotated with `@RestController`, `@Transactional`
- Use constructor injection and SLF4J logging
- Use `WorkflowRestService` / `WorkflowRestServiceImpl` etc. as pattern
- Include at least one REST endpoint
- All classes should have `JavaDoc`

Generate:
- Full file contents with `package` declaration
- Follow the same class and method style as in `deedreports`