From 4bb462610138332087d808a62c84a0c9776b24cc Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 29 Apr 2014 08:58:33 +0200 Subject: [PATCH] Added integration-test provided by Joel Johnson --- src/it/hib-test/pom.xml | 79 +++++++++++++++++++ .../tests/SimplestMavenHib4Test.java | 32 ++++++++ 2 files changed, 111 insertions(+) create mode 100644 src/it/hib-test/pom.xml create mode 100644 src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java diff --git a/src/it/hib-test/pom.xml b/src/it/hib-test/pom.xml new file mode 100644 index 00000000..9ddcf4fe --- /dev/null +++ b/src/it/hib-test/pom.xml @@ -0,0 +1,79 @@ + + + 4.0.0 + de.juplo + hibernate4-basictest + Hibernate 4 Test + 0.1-SNAPSHOT + jar + + + ${project.build.directory}/hibernate4-schema/another/subdir + + + + org.hibernate + hibernate-core + 4.3.0.Final + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.0.2 + + 1.7 + 1.7 + utf8 + true + + + + + de.juplo + hibernate4-maven-plugin + @project.version@ + + + none + + both + + + + create-h2-ddl + + export + + + org.hibernate.dialect.H2Dialect + ${hibernate.exportdir}/h2.sql + + + + create-postgres-ddl + + export + + + org.hibernate.dialect.PostgreSQL82Dialect + ${hibernate.exportdir}/postgres.sql + + + + create-oracle-ddl + + export + + + org.hibernate.dialect.Oracle10gDialect + ${hibernate.exportdir}/oracle.sql + + + + + + + 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 new file mode 100644 index 00000000..3a3f565b --- /dev/null +++ b/src/it/hib-test/src/main/java/de/juplo/plugins/hibernate4/tests/SimplestMavenHib4Test.java @@ -0,0 +1,32 @@ +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; + +@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; +} -- 2.20.1