Spring Crud Generator v1.2.0 — Improved DB Compatibility, JSON Collections, and Reliable Docker Runs
Source: Dev.to
Improved Flyway Script Generation
- Migrations are now generated to behave consistently across MySQL, MariaDB, MSSQL, and PostgreSQL.
- Reduces “works on my DB” issues when switching environments or adding a second database target.
- Flyway scripts now handle reserved SQL keywords correctly.
- Unique constraint naming is standardized for reliable constraint generation.
JSON Type Support — Collections
The JSON type has been extended to cover collection‑based fields, matching modern API patterns.
JSON>
JSON>
These definitions allow you to model:
- Tags
- Attributes
- Nested configurations
- Any “structured but flexible” data without altering the domain model.
Docker Compose Reliability
- Healthchecks added so the Spring Boot container starts only after the database service is ready.
- Fixed exposed vs. internal port configuration, eliminating runtime confusion.
- Improves startup stability when the container previously crashed/retried while waiting for the database.
Internal Improvements
- Refactored project structure for easier maintenance and future extensibility.
- Added a runtime banner that prints version and source/output paths, aiding CI debugging.
- Updated
.openapi-generator-ignoreto prevent regeneration/overwrites of the following files:
pom.xml
README.md
Readme.md
readme.md
- A dedicated demo repository is now available to illustrate expected output and integration flow:
https://github.com/mzivkovicdev/spring-crud-generator-demo
Upgrade Notes
- v1.2.0 is a drop‑in update for most existing setups.
- Immediate benefits are visible when targeting multiple databases, using JSON‑mapped fields, or running the generator via Docker Compose.
Repository: https://github.com/mzivkovicdev/spring-crud-generator