diff --git a/bom/pom.xml b/bom/pom.xml index b951e25..0b0e027 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -44,11 +44,11 @@ 17 - 3.0.0 - 2021.0.4 + 3.2.5 + 2023.0.1 1.3.3 1.1.0-M6 - 1.6.9 + 1.8.0 3.2.0 2.22.2 2.22.2 @@ -67,9 +67,9 @@ 0.9.10 0.2.0 4.1.0 - 2.0.0 + 2.5.0 31.1-jre - 2.20.0 + 3.7.5 7.3.0 1.11.1 9.15.2 @@ -225,13 +225,15 @@ + Hibernate support for Spring 6 + For example, "io.hypersistence.utils.hibernate.type.json.JsonType" + Mind that Hibernate Types has been renamed to Hypersistence Utils. + See https://github.com/vladmihalcea/hypersistence-utils?tab=readme-ov-file#hibernate-64-and-63 + --> - com.vladmihalcea - hibernate-types-60 - ${hibernateTypeVersion} + io.hypersistence + hypersistence-utils-hibernate-63 + ${hypersistenceUtilsHibernate63Version} diff --git a/order/pom.xml b/order/pom.xml index a1b2a42..ecfea73 100644 --- a/order/pom.xml +++ b/order/pom.xml @@ -136,12 +136,14 @@ + Hibernate support for Spring 6 + For example, "io.hypersistence.utils.hibernate.type.json.JsonType" + Mind that Hibernate Types has been renamed to Hypersistence Utils. + See https://github.com/vladmihalcea/hypersistence-utils?tab=readme-ov-file#hibernate-64-and-63 + --> - com.vladmihalcea - hibernate-types-60 + io.hypersistence + hypersistence-utils-hibernate-63 diff --git a/order/src/main/java/com/emeraldhieu/vinci/order/logic/Order.java b/order/src/main/java/com/emeraldhieu/vinci/order/logic/Order.java index c4e9190..024b0a6 100644 --- a/order/src/main/java/com/emeraldhieu/vinci/order/logic/Order.java +++ b/order/src/main/java/com/emeraldhieu/vinci/order/logic/Order.java @@ -1,6 +1,6 @@ package com.emeraldhieu.vinci.order.logic; -import com.vladmihalcea.hibernate.type.json.JsonType; +import io.hypersistence.utils.hibernate.type.json.JsonType; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.EntityListeners; @@ -50,7 +50,7 @@ public class Order { private String externalId; @Type(JsonType.class) - @Column(nullable = false) + @Column(nullable = false, columnDefinition = "json") private List products; @Column(nullable = false) diff --git a/order/src/main/resources/config/application-local.yml b/order/src/main/resources/config/application-local.yml index 4c6f2e5..bdadfb4 100644 --- a/order/src/main/resources/config/application-local.yml +++ b/order/src/main/resources/config/application-local.yml @@ -10,7 +10,10 @@ spring: # Drop the existing to repopulate the whole database drop-first: true # Used for development to update the changelogs continuously - clear-checksums: true + # clear-checksums: true + # Temporarily set it to false to resolve an issue from Liquibase 4.24 + # See https://github.com/liquibase/liquibase/issues/5610#issuecomment-2024174007 + clear-checksums: false kafka: bootstrap-servers: "localhost:9092" properties: diff --git a/order/src/main/resources/config/application.yml b/order/src/main/resources/config/application.yml index 2ab282d..e1fc3d9 100644 --- a/order/src/main/resources/config/application.yml +++ b/order/src/main/resources/config/application.yml @@ -1,6 +1,6 @@ spring: profiles: - active: local # Activate "local" profile by default + active: local # Activate profile "local" by default jackson: default-property-inclusion: non_null messages: diff --git a/shipping/pom.xml b/shipping/pom.xml index 9c4c13a..bbb7788 100644 --- a/shipping/pom.xml +++ b/shipping/pom.xml @@ -119,12 +119,14 @@ + Hibernate support for Spring 6 + For example, "io.hypersistence.utils.hibernate.type.json.JsonType" + Mind that Hibernate Types has been renamed to Hypersistence Utils. + See https://github.com/vladmihalcea/hypersistence-utils?tab=readme-ov-file#hibernate-64-and-63 + --> - com.vladmihalcea - hibernate-types-60 + io.hypersistence + hypersistence-utils-hibernate-63