From: Kai Moritz Date: Fri, 5 Apr 2019 08:47:43 +0000 (+0200) Subject: Added an explicit test against Hibernate 5.2.18.Final X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2e85504dc64f3b334f8c90f31c678b00f629c244;p=hibernate4-maven-plugin Added an explicit test against Hibernate 5.2.18.Final --- 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 index 00000000..fd15b3fa --- /dev/null +++ b/src/it/hib-test-4.3.0/h2.sql @@ -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 index 00000000..38caf329 --- /dev/null +++ b/src/it/hib-test-4.3.0/oracle.sql @@ -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 index 00000000..b7bc4cb9 --- /dev/null +++ b/src/it/hib-test-4.3.0/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + de.juplo + hibernate4-basictest + Hibernate 4 Test + 0.1-SNAPSHOT + jar + + + + + + org.hibernate + hibernate-core + 4.3.0.Final + + + org.jadira.usertype + usertype.jodatime + 2.0.1 + + + joda-time + joda-time + 2.7 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.0.2 + + 1.7 + 1.7 + utf8 + true + + + + + de.juplo + hibernate-maven-plugin + @project.version@ + + + false + true + + + + create-h2-ddl + + create + + + org.hibernate.dialect.H2Dialect + h2.sql + + + + create-postgres-ddl + + create + + + org.hibernate.dialect.PostgreSQL82Dialect + postgres.sql + + + + create-oracle-ddl + + create + + + org.hibernate.dialect.Oracle10gDialect + oracle.sql + + + + + + + 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 index 00000000..7624731c --- /dev/null +++ b/src/it/hib-test-4.3.0/postgres.sql @@ -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 index 00000000..3e647471 --- /dev/null +++ b/src/it/hib-test-4.3.0/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java @@ -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 index 00000000..23554cc4 --- /dev/null +++ b/src/it/hib-test-4.3.0/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java @@ -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 index 00000000..ac2ae58a --- /dev/null +++ b/src/it/hib-test-4.3.0/verify.bsh @@ -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 index 00000000..fd15b3fa --- /dev/null +++ b/src/it/hib-test-5.2.18/h2.sql @@ -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 index 00000000..38caf329 --- /dev/null +++ b/src/it/hib-test-5.2.18/oracle.sql @@ -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 index 00000000..b60eb245 --- /dev/null +++ b/src/it/hib-test-5.2.18/pom.xml @@ -0,0 +1,87 @@ + + + 4.0.0 + de.juplo + hibernate4-basictest + Hibernate 4 Test + 0.1-SNAPSHOT + jar + + + + + + org.hibernate + hibernate-core + 5.2.18.Final + + + org.jadira.usertype + usertype.jodatime + 2.0.1 + + + joda-time + joda-time + 2.7 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.0.2 + + 1.7 + 1.7 + utf8 + true + + + + + de.juplo + hibernate-maven-plugin + @project.version@ + + + false + true + + + + create-h2-ddl + + create + + + org.hibernate.dialect.H2Dialect + h2.sql + + + + create-postgres-ddl + + create + + + org.hibernate.dialect.PostgreSQL82Dialect + postgres.sql + + + + create-oracle-ddl + + create + + + org.hibernate.dialect.Oracle10gDialect + oracle.sql + + + + + + + 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 index 00000000..7624731c --- /dev/null +++ b/src/it/hib-test-5.2.18/postgres.sql @@ -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 index 00000000..3e647471 --- /dev/null +++ b/src/it/hib-test-5.2.18/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java @@ -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 index 00000000..23554cc4 --- /dev/null +++ b/src/it/hib-test-5.2.18/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java @@ -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 index 00000000..ac2ae58a --- /dev/null +++ b/src/it/hib-test-5.2.18/verify.bsh @@ -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 index fd15b3fa..00000000 --- a/src/it/hib-test/h2.sql +++ /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 index 38caf329..00000000 --- a/src/it/hib-test/oracle.sql +++ /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 index b7bc4cb9..00000000 --- a/src/it/hib-test/pom.xml +++ /dev/null @@ -1,87 +0,0 @@ - - - 4.0.0 - de.juplo - hibernate4-basictest - Hibernate 4 Test - 0.1-SNAPSHOT - jar - - - - - - org.hibernate - hibernate-core - 4.3.0.Final - - - org.jadira.usertype - usertype.jodatime - 2.0.1 - - - joda-time - joda-time - 2.7 - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 2.0.2 - - 1.7 - 1.7 - utf8 - true - - - - - de.juplo - hibernate-maven-plugin - @project.version@ - - - false - true - - - - create-h2-ddl - - create - - - org.hibernate.dialect.H2Dialect - h2.sql - - - - create-postgres-ddl - - create - - - org.hibernate.dialect.PostgreSQL82Dialect - postgres.sql - - - - create-oracle-ddl - - create - - - org.hibernate.dialect.Oracle10gDialect - oracle.sql - - - - - - - diff --git a/src/it/hib-test/postgres.sql b/src/it/hib-test/postgres.sql deleted file mode 100644 index 7624731c..00000000 --- a/src/it/hib-test/postgres.sql +++ /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 index 3e647471..00000000 --- a/src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java +++ /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 index 23554cc4..00000000 --- a/src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/package-info.java +++ /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 index ac2ae58a..00000000 --- a/src/it/hib-test/verify.bsh +++ /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;