Skip to content

Commit

Permalink
Add support for Hibernate 6.4 #685
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Jan 30, 2024
1 parent f436b43 commit 2e3098a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ That's it!

The Hypersistence Utils project gives you general-purpose utilities for both Spring and Hibernate.

The main advantage of this project is that it supports a broad range of Hibernate versions, spanning from **Hibernate ORM 6.3**, **6.2** to **6.1**, **6.0**, **5.6**, **5.5**, **5.4**, **5.3**, and Hibernate **5.2**.
The main advantage of this project is that it supports a broad range of Hibernate versions, spanning from **Hibernate ORM 6.4**, **6.3** to **6.2**, **6.1**, **6.0**, **5.6**, **5.5**, **5.4**, **5.3**, and Hibernate **5.2**.

### Installation Guide

Depending on the Hibernate version you are using, you need to add the following dependency:

#### Hibernate 6.3
#### Hibernate 6.4 and 6.3

<dependency>
<groupId>io.hypersistence</groupId>
Expand Down
3 changes: 2 additions & 1 deletion hypersistence-utils-hibernate-63/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@
<maven.compiler.release>${jdk.version}</maven.compiler.release>
<maven.compiler.testRelease>${jdk-test.version}</maven.compiler.testRelease>

<hibernate.version>6.3.1.Final</hibernate.version>
<!--<hibernate.version>6.3.1.Final</hibernate.version>-->
<hibernate.version>6.4.2.Final</hibernate.version>

<jackson-module-jakarta-xmlbind-annotation>2.15.3</jackson-module-jakarta-xmlbind-annotation>
<guava.version>32.1.3-jre</guava.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ArraySqlTypeDescriptor implements JdbcType {

@Override
public int getJdbcTypeCode() {
return Types.ARRAY;
return Types.OTHER;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package io.hypersistence.utils.hibernate.type.json.generic;

import io.hypersistence.utils.hibernate.type.json.JsonBinaryType;
import io.hypersistence.utils.hibernate.type.json.JsonType;
import io.hypersistence.utils.hibernate.type.json.configuration.CustomObjectMapperSupplier;
import io.hypersistence.utils.hibernate.type.json.configuration.PostgreSQLJsonBinaryTypeProgrammaticConfigurationTest;
import io.hypersistence.utils.hibernate.type.model.BaseEntity;
import io.hypersistence.utils.hibernate.type.model.Location;
import io.hypersistence.utils.hibernate.type.model.Ticket;
Expand All @@ -15,13 +12,9 @@
import jakarta.persistence.Table;
import org.hibernate.annotations.Type;
import org.hibernate.jpa.boot.spi.TypeContributorList;
import org.hibernate.query.NativeQuery;
import org.hibernate.query.Query;
import org.hibernate.query.TypedParameterValue;
import org.junit.Test;

import java.util.Collections;
import java.util.List;
import java.util.Properties;

import static org.junit.Assert.assertEquals;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.hypersistence.utils.hibernate.type.model;

import io.hypersistence.utils.hibernate.type.json.internal.JacksonUtil;

import java.io.Serializable;
import java.util.Objects;

Expand Down Expand Up @@ -30,10 +32,7 @@ public void setCity(String city) {

@Override
public String toString() {
return "Location{" +
"country='" + country + '\'' +
", city='" + city + '\'' +
'}';
return JacksonUtil.toString(this);
}

@Override
Expand Down

0 comments on commit 2e3098a

Please sign in to comment.