Backend Application Default Plugin
👉 ZenWave360 Helps You Create Software Easy to Understand
Generates a full backend application using a flexible hexagonal architecture.
Visit https://zenwave360.github.io/docs/zenwave-sdk/backend-application for complete documentation.
Options
Option | Description | Type | Default | Values |
---|---|---|---|---|
specFile | Spec file to parse | String | Â | Â |
targetFolder | Target folder to generate code to. If left empty, it will print to stdout. | File | Â | Â |
specFiles | ZDL files to parse | String[] | [] | Â |
basePackage | Java Models package name | String | io.example.domain.model | Â |
persistence | Persistence | PersistenceType | mongodb | mongodb, jpa |
style | Programming Style | ProgrammingStyle | imperative | imperative, reactive |
databaseType | SQL database flavor | DatabaseType | postgresql | postgresql, mariadb |
idJavaType | Specifies the Java data type for the ID fields of entities. Defaults to Long for JPA and String for MongoDB if not explicitly set. | String | Â | Â |
useLombok | Use @Getter and @Setter annotations from Lombok | boolean | false | Â |
inputDTOSuffix | If not empty, it will generate (and use) an input DTO for each entity used as command parameter | String | Â | Â |
includeEmitEventsImplementation | Whether to add IEntityEventProducer interfaces as service dependencies. Depends on the naming convention of zenwave-asyncapi plugin to work. | boolean | false | Â |
addRelationshipsById | Controls whether to add a read/write relationship by id when mapping relationships between aggregate (not recommended) keeping the relationship by object readonly. | boolean | false | Â |
entities | Entities to generate code for | List | [] | Â |
formatter | Code formatter implementation | Formatters | spring | google, palantir, spring, eclipse |
skipFormatting | Skip java sources output formatting | boolean | false | Â |
continueOnZdlError | Continue even when ZDL contains fatal errors | boolean | true | Â |
haltOnFailFormatting | Halt on formatting errors | boolean | true | Â |
Getting Help
jbang zw -p io.zenwave360.sdk.plugins.BackendApplicationDefaultPlugin --help