Uploaded image for project: 'Quarkus Documentation'
  1. Quarkus Documentation
  2. QDOCS-1153

[Docs] [Breaking Change]: Hibernate ORM - Bean Validation integration now contributes to DDL by default

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • False
    • Hide
      [id="ref_rn-qdocs-1153-hibernate-orm-bean-validation_{context}"]
      = Hibernate ORM: Bean Validation Integration Now Contributes to DDL by Default

      In {ProductLongName} {ProductVersion}, the default behavior of Hibernate ORM's Bean Validation integration has changed.
      Previously, validation constraints were not considered during Data Definition Language (DDL) generation.
      Now, Hibernate ORM includes validation constraints in DDL by default, ensuring that database schemas align more closely with application-level constraints.

      To revert to the previous behavior where validation constraints do not influence DDL generation, set the `quarkus.hibernate-orm.validation.mode` configuration property to `callback`:

      ----
      quarkus.hibernate-orm.validation.mode=callback
      ----

      The `quarkus.hibernate-orm.validation.enabled` property has also been deprecated.
      To disable Bean Validation integration, use the following setting:

      ----
      quarkus.hibernate-orm.validation.mode=none
      ----

      For more details on these changes and guidance on migrating your application, refer to the link:https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.19#hibernate-orm[Migration Guide 3.19].

      // https://issues.redhat.com/browse/QDOCS-1153
      include::rn/ref_rn-qdocs-1153-hibernate-orm-bean-validation.adoc[leveloffset=+2]
      Show
      [id="ref_rn-qdocs-1153-hibernate-orm-bean-validation_{context}"] = Hibernate ORM: Bean Validation Integration Now Contributes to DDL by Default In {ProductLongName} {ProductVersion}, the default behavior of Hibernate ORM's Bean Validation integration has changed. Previously, validation constraints were not considered during Data Definition Language (DDL) generation. Now, Hibernate ORM includes validation constraints in DDL by default, ensuring that database schemas align more closely with application-level constraints. To revert to the previous behavior where validation constraints do not influence DDL generation, set the `quarkus.hibernate-orm.validation.mode` configuration property to `callback`: ---- quarkus.hibernate-orm.validation.mode=callback ---- The `quarkus.hibernate-orm.validation.enabled` property has also been deprecated. To disable Bean Validation integration, use the following setting: ---- quarkus.hibernate-orm.validation.mode=none ---- For more details on these changes and guidance on migrating your application, refer to the link: https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.19#hibernate-orm [Migration Guide 3.19]. // https://issues.redhat.com/browse/QDOCS-1153 include::rn/ref_rn-qdocs-1153-hibernate-orm-bean-validation.adoc[leveloffset=+2]
    • Quarkus Docs Sprint 38

            mmaler@redhat.com Michal Maléř
            shjones@redhat.com Sheila Jones
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: