Skip to content

Commit

Permalink
Add support for Hibernate 5.6 in BatchSequenceGenerator #417
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Apr 6, 2022
1 parent c73db35 commit 78ed59e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@

The Hibernate Types repository gives you extra types and general-purpose utilities that are not supported by the Hibernate ORM core.

The main advantage of this project is that it supports a broad range of Hibernate versions, spanning from Hibernate ORM 6 to 5.5, 5.4, 5.3, 5.2, 5.1, 5, 4.3, 4.2, and Hibernate 4.1.
The main advantage of this project is that it supports a broad range of Hibernate versions, spanning from **Hibernate ORM 6** to **5.5**, **5.4**, **5.3**, **5.2**, **5.1**, **5**, **4.3**, **4.2**, and Hibernate **4.1**.

### Features

Expand Down
2 changes: 1 addition & 1 deletion hibernate-types-52/pom.xml
Expand Up @@ -66,7 +66,7 @@
<properties>
<jdk.version>8</jdk.version>

<hibernate.version>5.4.32.Final</hibernate.version>
<hibernate.version>5.4.33.Final</hibernate.version>
<!--<hibernate.version>5.2.18.Final</hibernate.version>-->
<postgresql.version>42.3.3</postgresql.version>

Expand Down
2 changes: 1 addition & 1 deletion hibernate-types-55/pom.xml
Expand Up @@ -66,7 +66,7 @@
<properties>
<jdk.version>8</jdk.version>

<hibernate.version>5.5.0.Final</hibernate.version>
<hibernate.version>5.6.7.Final</hibernate.version>
<postgresql.version>42.3.3</postgresql.version>

<mysql.version>8.0.28</mysql.version>
Expand Down
@@ -1,5 +1,6 @@
package com.vladmihalcea.hibernate.id;

import com.vladmihalcea.hibernate.util.ReflectionUtils;
import org.hibernate.HibernateException;
import org.hibernate.MappingException;
import org.hibernate.boot.model.relational.Database;
Expand Down Expand Up @@ -276,16 +277,12 @@ private String getSequenceName() {
return this.databaseStructure.getName();
}

@Override
@Deprecated
public String[] sqlCreateStrings(Dialect dialect) {
return this.databaseStructure.sqlCreateStrings(dialect);
return ReflectionUtils.invokeMethod(databaseStructure, "sqlCreateStrings", dialect);
}

@Override
@Deprecated
public String[] sqlDropStrings(Dialect dialect) {
return this.databaseStructure.sqlDropStrings(dialect);
return ReflectionUtils.invokeMethod(databaseStructure, "sqlDropStrings", dialect);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion hibernate-types-60/pom.xml
Expand Up @@ -18,7 +18,7 @@
<dependencies>

<dependency>
<groupId>org.hibernate</groupId>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
<scope>provided</scope>
Expand Down

0 comments on commit 78ed59e

Please sign in to comment.