Skip to content

Commit

Permalink
Add support for Hibernate 6 #401
Browse files Browse the repository at this point in the history
  • Loading branch information
vladmihalcea committed Apr 5, 2022
1 parent ed8fe8e commit 31863d9
Show file tree
Hide file tree
Showing 249 changed files with 25,007 additions and 8 deletions.
Expand Up @@ -140,7 +140,7 @@ public static class Book {
private String isbn;

@Type(type = "json")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT IS_VALID_JSON CHECK (properties IS JSON)")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT HT_BOOK_IS_VALID_JSON CHECK (properties IS JSON)")
private String properties;

public String getIsbn() {
Expand Down
Expand Up @@ -86,7 +86,7 @@ public static class Book {
private String isbn;

@Type(type = "json")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT IS_VALID_JSON CHECK (properties IS JSON)")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT HT_BOOK_IS_VALID_JSON CHECK (properties IS JSON)")
private Map<String, String> properties = new HashMap<String, String>();

public String getIsbn() {
Expand Down
Expand Up @@ -136,7 +136,7 @@ public static class Book {
private String isbn;

@Type(type = "json")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT IS_VALID_JSON CHECK (properties IS JSON)")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT HT_BOOK_IS_VALID_JSON CHECK (properties IS JSON)")
private String properties;

public String getIsbn() {
Expand Down
Expand Up @@ -86,7 +86,7 @@ public static class Book {
private String isbn;

@Type(type = "json")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT IS_VALID_JSON CHECK (properties IS JSON)")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT HT_BOOK_IS_VALID_JSON CHECK (properties IS JSON)")
private Map<String, String> properties = new HashMap<String, String>();

public String getIsbn() {
Expand Down
Expand Up @@ -145,7 +145,7 @@ public static class Book {
private String isbn;

@Type(type = "json")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT IS_VALID_JSON CHECK (properties IS JSON)")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT HT_BOOK_IS_VALID_JSON CHECK (properties IS JSON)")
private String properties;

public String getIsbn() {
Expand Down
Expand Up @@ -73,7 +73,7 @@ public static class Book {
private String isbn;

@Type(type = "json")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT IS_VALID_JSON CHECK (properties IS JSON)")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT HT_BOOK_IS_VALID_JSON CHECK (properties IS JSON)")
private Map<String, String> properties = new HashMap<>();

public String getIsbn() {
Expand Down
Expand Up @@ -145,7 +145,7 @@ public static class Book {
private String isbn;

@Type(type = "json")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT IS_VALID_JSON CHECK (properties IS JSON)")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT HT_BOOK_IS_VALID_JSON CHECK (properties IS JSON)")
private String properties;

public String getIsbn() {
Expand Down
Expand Up @@ -73,7 +73,7 @@ public static class Book {
private String isbn;

@Type(type = "json")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT IS_VALID_JSON CHECK (properties IS JSON)")
@Column(columnDefinition = "VARCHAR2(1000) CONSTRAINT HT_BOOK_IS_VALID_JSON CHECK (properties IS JSON)")
private Map<String, String> properties = new HashMap<>();

public String getIsbn() {
Expand Down
110 changes: 110 additions & 0 deletions hibernate-types-60/pom.xml
@@ -0,0 +1,110 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>com.vladmihalcea</groupId>
<artifactId>hibernate-types-parent</artifactId>
<version>2.14.2-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>hibernate-types-60</artifactId>
<version>2.14.2-SNAPSHOT</version>
<packaging>jar</packaging>

<name>hibernate-types-60</name>
<description>Hibernate ORM 6.0 extra Types</description>

<dependencies>

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

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-jcache</artifactId>
<version>${hibernate.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>

<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>

</dependencies>

<properties>
<jdk.version>11</jdk.version>

<hibernate.version>6.0.0.Final</hibernate.version>
<postgresql.version>42.3.3</postgresql.version>

<mysql.version>8.0.28</mysql.version>
<jackson.version>2.11.0</jackson.version>
<guava.version>29.0-jre</guava.version>

</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>com.vladmihalcea.hibernate.type</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>

0 comments on commit 31863d9

Please sign in to comment.