Added an explicit test against Hibernate 5.2.18.Final
authorKai Moritz <kai@juplo.de>
Fri, 5 Apr 2019 08:47:43 +0000 (10:47 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 5 Apr 2019 08:47:43 +0000 (10:47 +0200)
21 files changed:
src/it/hib-test-4.3.0/h2.sql [new file with mode: 0644]
src/it/hib-test-4.3.0/oracle.sql [new file with mode: 0644]
src/it/hib-test-4.3.0/pom.xml [new file with mode: 0644]
src/it/hib-test-4.3.0/postgres.sql [new file with mode: 0644]
src/it/hib-test-4.3.0/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java [new file with mode: 0644]
src/it/hib-test-4.3.0/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java [new file with mode: 0644]
src/it/hib-test-4.3.0/verify.bsh [new file with mode: 0644]
src/it/hib-test-5.2.18/h2.sql [new file with mode: 0644]
src/it/hib-test-5.2.18/oracle.sql [new file with mode: 0644]
src/it/hib-test-5.2.18/pom.xml [new file with mode: 0644]
src/it/hib-test-5.2.18/postgres.sql [new file with mode: 0644]
src/it/hib-test-5.2.18/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java [new file with mode: 0644]
src/it/hib-test-5.2.18/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java [new file with mode: 0644]
src/it/hib-test-5.2.18/verify.bsh [new file with mode: 0644]
src/it/hib-test/h2.sql [deleted file]
src/it/hib-test/oracle.sql [deleted file]
src/it/hib-test/pom.xml [deleted file]
src/it/hib-test/postgres.sql [deleted file]
src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java [deleted file]
src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java [deleted file]
src/it/hib-test/verify.bsh [deleted file]

diff --git a/src/it/hib-test-4.3.0/h2.sql b/src/it/hib-test-4.3.0/h2.sql
new file mode 100644 (file)
index 0000000..fd15b3f
--- /dev/null
@@ -0,0 +1,10 @@
+
+    create table test_simple (
+        uuid varchar(36) not null,
+        content clob,
+        created timestamp,
+        externalid varchar(148),
+        sources varchar(255),
+        primary key (uuid)
+    );
+create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test-4.3.0/oracle.sql b/src/it/hib-test-4.3.0/oracle.sql
new file mode 100644 (file)
index 0000000..38caf32
--- /dev/null
@@ -0,0 +1,10 @@
+
+    create table test_simple (
+        uuid varchar2(36 char) not null,
+        content clob,
+        created timestamp,
+        externalid varchar2(148 char),
+        sources varchar2(255 char),
+        primary key (uuid)
+    );
+create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test-4.3.0/pom.xml b/src/it/hib-test-4.3.0/pom.xml
new file mode 100644 (file)
index 0000000..b7bc4cb
--- /dev/null
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate4-basictest</artifactId>
+  <name>Hibernate 4 Test</name>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <properties>
+    <!--hibernate.skip>false</hibernate.skip-->
+  </properties>
+  <dependencies>
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>hibernate-core</artifactId>
+      <version>4.3.0.Final</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jadira.usertype</groupId>
+      <artifactId>usertype.jodatime</artifactId>
+      <version>2.0.1</version>
+    </dependency>
+    <dependency>
+      <groupId>joda-time</groupId>
+      <artifactId>joda-time</artifactId>
+      <version>2.7</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+        <configuration>
+          <source>1.7</source>
+          <target>1.7</target>
+          <encoding>utf8</encoding>
+          <showWarnings>true</showWarnings>
+        </configuration>
+      </plugin>
+      <!--  Generate database schema files -->
+      <plugin>
+        <groupId>de.juplo</groupId>
+        <artifactId>hibernate-maven-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <!-- Generat schema only, no DB connection needed -->
+          <execute>false</execute>
+          <format>true</format>
+        </configuration>
+        <executions>
+          <execution>
+            <id>create-h2-ddl</id>
+            <goals>
+              <goal>create</goal>
+            </goals>
+            <configuration>
+              <dialect>org.hibernate.dialect.H2Dialect</dialect>
+              <outputFile>h2.sql</outputFile>
+            </configuration>
+          </execution>
+          <execution>
+            <id>create-postgres-ddl</id>
+            <goals>
+              <goal>create</goal>
+            </goals>
+            <configuration>
+              <dialect>org.hibernate.dialect.PostgreSQL82Dialect</dialect>
+              <outputFile>postgres.sql</outputFile>
+            </configuration>
+          </execution>
+          <execution>
+            <id>create-oracle-ddl</id>
+            <goals>
+              <goal>create</goal>
+            </goals>
+            <configuration>
+              <dialect>org.hibernate.dialect.Oracle10gDialect</dialect>
+              <outputFile>oracle.sql</outputFile>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/src/it/hib-test-4.3.0/postgres.sql b/src/it/hib-test-4.3.0/postgres.sql
new file mode 100644 (file)
index 0000000..7624731
--- /dev/null
@@ -0,0 +1,10 @@
+
+    create table test_simple (
+        uuid varchar(36) not null,
+        content text,
+        created timestamp,
+        externalid varchar(148),
+        sources varchar(255),
+        primary key (uuid)
+    );
+create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test-4.3.0/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java b/src/it/hib-test-4.3.0/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java
new file mode 100644 (file)
index 0000000..3e64747
--- /dev/null
@@ -0,0 +1,37 @@
+package de.juplo.plugins.hibernate4.tests;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.Table;
+
+import org.hibernate.annotations.Index;
+import org.hibernate.annotations.Type;
+import org.joda.time.DateTime;
+
+@Entity
+@Table(name = "test_simple")
+@org.hibernate.annotations.Table(
+        appliesTo="test_simple",
+        indexes = {
+            @Index(name="idx_test_simple_tuple", columnNames={"sources", "uuid"} ),
+        }
+)
+public class SimplestMavenHib4Test {
+
+    private String sources;
+
+    @Lob
+    private String content;
+
+    @Id
+    @Column (length=36)
+    private String uuid;
+
+    @Column(name = "externalid", length=148)
+    private String externalXyzId;
+
+    @Type(type = "joda")
+    private DateTime created;
+}
diff --git a/src/it/hib-test-4.3.0/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java b/src/it/hib-test-4.3.0/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java
new file mode 100644 (file)
index 0000000..23554cc
--- /dev/null
@@ -0,0 +1,2 @@
+@org.hibernate.annotations.TypeDef(name = "joda", typeClass = org.jadira.usertype.dateandtime.joda.PersistentDateTime.class)
+package de.juplo.plugins.hibernate4.tests;
diff --git a/src/it/hib-test-4.3.0/verify.bsh b/src/it/hib-test-4.3.0/verify.bsh
new file mode 100644 (file)
index 0000000..ac2ae58
--- /dev/null
@@ -0,0 +1,11 @@
+import de.juplo.test.FileComparator;
+
+
+FileComparator comparator = new FileComparator(basedir);
+
+if (!comparator.isEqual("h2.sql","target/h2.sql"))
+  return false;
+if (!comparator.isEqual("oracle.sql","target/oracle.sql"))
+  return false;
+if (!comparator.isEqual("postgres.sql","target/postgres.sql"))
+  return false;
diff --git a/src/it/hib-test-5.2.18/h2.sql b/src/it/hib-test-5.2.18/h2.sql
new file mode 100644 (file)
index 0000000..fd15b3f
--- /dev/null
@@ -0,0 +1,10 @@
+
+    create table test_simple (
+        uuid varchar(36) not null,
+        content clob,
+        created timestamp,
+        externalid varchar(148),
+        sources varchar(255),
+        primary key (uuid)
+    );
+create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test-5.2.18/oracle.sql b/src/it/hib-test-5.2.18/oracle.sql
new file mode 100644 (file)
index 0000000..38caf32
--- /dev/null
@@ -0,0 +1,10 @@
+
+    create table test_simple (
+        uuid varchar2(36 char) not null,
+        content clob,
+        created timestamp,
+        externalid varchar2(148 char),
+        sources varchar2(255 char),
+        primary key (uuid)
+    );
+create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test-5.2.18/pom.xml b/src/it/hib-test-5.2.18/pom.xml
new file mode 100644 (file)
index 0000000..b60eb24
--- /dev/null
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>de.juplo</groupId>
+  <artifactId>hibernate4-basictest</artifactId>
+  <name>Hibernate 4 Test</name>
+  <version>0.1-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <properties>
+    <!--hibernate.skip>false</hibernate.skip-->
+  </properties>
+  <dependencies>
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>hibernate-core</artifactId>
+      <version>5.2.18.Final</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jadira.usertype</groupId>
+      <artifactId>usertype.jodatime</artifactId>
+      <version>2.0.1</version>
+    </dependency>
+    <dependency>
+      <groupId>joda-time</groupId>
+      <artifactId>joda-time</artifactId>
+      <version>2.7</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+        <configuration>
+          <source>1.7</source>
+          <target>1.7</target>
+          <encoding>utf8</encoding>
+          <showWarnings>true</showWarnings>
+        </configuration>
+      </plugin>
+      <!--  Generate database schema files -->
+      <plugin>
+        <groupId>de.juplo</groupId>
+        <artifactId>hibernate-maven-plugin</artifactId>
+        <version>@project.version@</version>
+        <configuration>
+          <!-- Generat schema only, no DB connection needed -->
+          <execute>false</execute>
+          <format>true</format>
+        </configuration>
+        <executions>
+          <execution>
+            <id>create-h2-ddl</id>
+            <goals>
+              <goal>create</goal>
+            </goals>
+            <configuration>
+              <dialect>org.hibernate.dialect.H2Dialect</dialect>
+              <outputFile>h2.sql</outputFile>
+            </configuration>
+          </execution>
+          <execution>
+            <id>create-postgres-ddl</id>
+            <goals>
+              <goal>create</goal>
+            </goals>
+            <configuration>
+              <dialect>org.hibernate.dialect.PostgreSQL82Dialect</dialect>
+              <outputFile>postgres.sql</outputFile>
+            </configuration>
+          </execution>
+          <execution>
+            <id>create-oracle-ddl</id>
+            <goals>
+              <goal>create</goal>
+            </goals>
+            <configuration>
+              <dialect>org.hibernate.dialect.Oracle10gDialect</dialect>
+              <outputFile>oracle.sql</outputFile>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
diff --git a/src/it/hib-test-5.2.18/postgres.sql b/src/it/hib-test-5.2.18/postgres.sql
new file mode 100644 (file)
index 0000000..7624731
--- /dev/null
@@ -0,0 +1,10 @@
+
+    create table test_simple (
+        uuid varchar(36) not null,
+        content text,
+        created timestamp,
+        externalid varchar(148),
+        sources varchar(255),
+        primary key (uuid)
+    );
+create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test-5.2.18/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java b/src/it/hib-test-5.2.18/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java
new file mode 100644 (file)
index 0000000..3e64747
--- /dev/null
@@ -0,0 +1,37 @@
+package de.juplo.plugins.hibernate4.tests;
+
+import javax.persistence.Column;
+import javax.persistence.Entity;
+import javax.persistence.Id;
+import javax.persistence.Lob;
+import javax.persistence.Table;
+
+import org.hibernate.annotations.Index;
+import org.hibernate.annotations.Type;
+import org.joda.time.DateTime;
+
+@Entity
+@Table(name = "test_simple")
+@org.hibernate.annotations.Table(
+        appliesTo="test_simple",
+        indexes = {
+            @Index(name="idx_test_simple_tuple", columnNames={"sources", "uuid"} ),
+        }
+)
+public class SimplestMavenHib4Test {
+
+    private String sources;
+
+    @Lob
+    private String content;
+
+    @Id
+    @Column (length=36)
+    private String uuid;
+
+    @Column(name = "externalid", length=148)
+    private String externalXyzId;
+
+    @Type(type = "joda")
+    private DateTime created;
+}
diff --git a/src/it/hib-test-5.2.18/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java b/src/it/hib-test-5.2.18/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java
new file mode 100644 (file)
index 0000000..23554cc
--- /dev/null
@@ -0,0 +1,2 @@
+@org.hibernate.annotations.TypeDef(name = "joda", typeClass = org.jadira.usertype.dateandtime.joda.PersistentDateTime.class)
+package de.juplo.plugins.hibernate4.tests;
diff --git a/src/it/hib-test-5.2.18/verify.bsh b/src/it/hib-test-5.2.18/verify.bsh
new file mode 100644 (file)
index 0000000..ac2ae58
--- /dev/null
@@ -0,0 +1,11 @@
+import de.juplo.test.FileComparator;
+
+
+FileComparator comparator = new FileComparator(basedir);
+
+if (!comparator.isEqual("h2.sql","target/h2.sql"))
+  return false;
+if (!comparator.isEqual("oracle.sql","target/oracle.sql"))
+  return false;
+if (!comparator.isEqual("postgres.sql","target/postgres.sql"))
+  return false;
diff --git a/src/it/hib-test/h2.sql b/src/it/hib-test/h2.sql
deleted file mode 100644 (file)
index fd15b3f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-    create table test_simple (
-        uuid varchar(36) not null,
-        content clob,
-        created timestamp,
-        externalid varchar(148),
-        sources varchar(255),
-        primary key (uuid)
-    );
-create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test/oracle.sql b/src/it/hib-test/oracle.sql
deleted file mode 100644 (file)
index 38caf32..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-    create table test_simple (
-        uuid varchar2(36 char) not null,
-        content clob,
-        created timestamp,
-        externalid varchar2(148 char),
-        sources varchar2(255 char),
-        primary key (uuid)
-    );
-create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test/pom.xml b/src/it/hib-test/pom.xml
deleted file mode 100644 (file)
index b7bc4cb..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>de.juplo</groupId>
-  <artifactId>hibernate4-basictest</artifactId>
-  <name>Hibernate 4 Test</name>
-  <version>0.1-SNAPSHOT</version>
-  <packaging>jar</packaging>
-  <properties>
-    <!--hibernate.skip>false</hibernate.skip-->
-  </properties>
-  <dependencies>
-    <dependency>
-      <groupId>org.hibernate</groupId>
-      <artifactId>hibernate-core</artifactId>
-      <version>4.3.0.Final</version>
-    </dependency>
-    <dependency>
-      <groupId>org.jadira.usertype</groupId>
-      <artifactId>usertype.jodatime</artifactId>
-      <version>2.0.1</version>
-    </dependency>
-    <dependency>
-      <groupId>joda-time</groupId>
-      <artifactId>joda-time</artifactId>
-      <version>2.7</version>
-    </dependency>
-  </dependencies>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.0.2</version>
-        <configuration>
-          <source>1.7</source>
-          <target>1.7</target>
-          <encoding>utf8</encoding>
-          <showWarnings>true</showWarnings>
-        </configuration>
-      </plugin>
-      <!--  Generate database schema files -->
-      <plugin>
-        <groupId>de.juplo</groupId>
-        <artifactId>hibernate-maven-plugin</artifactId>
-        <version>@project.version@</version>
-        <configuration>
-          <!-- Generat schema only, no DB connection needed -->
-          <execute>false</execute>
-          <format>true</format>
-        </configuration>
-        <executions>
-          <execution>
-            <id>create-h2-ddl</id>
-            <goals>
-              <goal>create</goal>
-            </goals>
-            <configuration>
-              <dialect>org.hibernate.dialect.H2Dialect</dialect>
-              <outputFile>h2.sql</outputFile>
-            </configuration>
-          </execution>
-          <execution>
-            <id>create-postgres-ddl</id>
-            <goals>
-              <goal>create</goal>
-            </goals>
-            <configuration>
-              <dialect>org.hibernate.dialect.PostgreSQL82Dialect</dialect>
-              <outputFile>postgres.sql</outputFile>
-            </configuration>
-          </execution>
-          <execution>
-            <id>create-oracle-ddl</id>
-            <goals>
-              <goal>create</goal>
-            </goals>
-            <configuration>
-              <dialect>org.hibernate.dialect.Oracle10gDialect</dialect>
-              <outputFile>oracle.sql</outputFile>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/src/it/hib-test/postgres.sql b/src/it/hib-test/postgres.sql
deleted file mode 100644 (file)
index 7624731..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-
-    create table test_simple (
-        uuid varchar(36) not null,
-        content text,
-        created timestamp,
-        externalid varchar(148),
-        sources varchar(255),
-        primary key (uuid)
-    );
-create index idx_test_simple_tuple on test_simple (sources, uuid);
diff --git a/src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java b/src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java
deleted file mode 100644 (file)
index 3e64747..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-package de.juplo.plugins.hibernate4.tests;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Lob;
-import javax.persistence.Table;
-
-import org.hibernate.annotations.Index;
-import org.hibernate.annotations.Type;
-import org.joda.time.DateTime;
-
-@Entity
-@Table(name = "test_simple")
-@org.hibernate.annotations.Table(
-        appliesTo="test_simple",
-        indexes = {
-            @Index(name="idx_test_simple_tuple", columnNames={"sources", "uuid"} ),
-        }
-)
-public class SimplestMavenHib4Test {
-
-    private String sources;
-
-    @Lob
-    private String content;
-
-    @Id
-    @Column (length=36)
-    private String uuid;
-
-    @Column(name = "externalid", length=148)
-    private String externalXyzId;
-
-    @Type(type = "joda")
-    private DateTime created;
-}
diff --git a/src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java b/src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java
deleted file mode 100644 (file)
index 23554cc..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-@org.hibernate.annotations.TypeDef(name = "joda", typeClass = org.jadira.usertype.dateandtime.joda.PersistentDateTime.class)
-package de.juplo.plugins.hibernate4.tests;
diff --git a/src/it/hib-test/verify.bsh b/src/it/hib-test/verify.bsh
deleted file mode 100644 (file)
index ac2ae58..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-import de.juplo.test.FileComparator;
-
-
-FileComparator comparator = new FileComparator(basedir);
-
-if (!comparator.isEqual("h2.sql","target/h2.sql"))
-  return false;
-if (!comparator.isEqual("oracle.sql","target/oracle.sql"))
-  return false;
-if (!comparator.isEqual("postgres.sql","target/postgres.sql"))
-  return false;