Spring Crud Generator v1.2.0 — Improved DB Compatibility, JSON Collections, and Reliable Docker Runs

Published: (February 20, 2026 at 05:32 AM EST)
2 min read
Source: Dev.to

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-ignore to prevent regeneration/overwrites of the following files:
pom.xml
README.md
Readme.md
readme.md

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

0 views
Back to Blog

Related posts

Read more »

What MongoDB taught me about Postgres.

!Cover image for What MongoDB taught me about Postgres.https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%...