--- /dev/null
+
+ drop table EVENTS if exists;
+
+ create table EVENTS (
+ id bigint not null,
+ EVENT_DATE timestamp,
+ title varchar(255),
+ primary key (id)
+ );
--- /dev/null
+
+ drop table EVENTS if exists;
+
+ create table EVENTS (
+ EVENT_ID bigint not null,
+ EVENT_DATE timestamp,
+ title varchar(255),
+ primary key (EVENT_ID)
+ );
--- /dev/null
+
+ drop table EVENTS if exists;
+
+ create table EVENTS (
+ id bigint not null,
+ EVENT_DATE timestamp,
+ title varchar(255),
+ primary key (id)
+ );
--- /dev/null
+
+ drop table EVENTS if exists;
+
+ drop table EVENTS_AUD if exists;
+
+ drop table REVINFO if exists;
+
+ create table EVENTS (
+ id bigint not null,
+ EVENT_DATE timestamp,
+ title varchar(255),
+ primary key (id)
+ );
+
+ create table EVENTS_AUD (
+ id bigint not null,
+ REV integer not null,
+ REVTYPE tinyint,
+ EVENT_DATE timestamp,
+ title varchar(255),
+ primary key (id, REV)
+ );
+
+ create table REVINFO (
+ REV integer generated by default as identity,
+ REVTSTMP bigint,
+ primary key (REV)
+ );
+
+ alter table EVENTS_AUD
+ add constraint FK_3hegaqrrpmx0jj0c8qacjtira
+ foreign key (REV)
+ references REVINFO;
--- /dev/null
+
+ drop table DataPoint if exists;
+
+ create table DataPoint (
+ id bigint generated by default as identity,
+ name varchar(255),
+ primary key (id)
+ );
--- /dev/null
+
+ drop table DataPoint if exists;
+
+ create table DataPoint (
+ id bigint generated by default as identity,
+ name varchar(255),
+ primary key (id)
+ );
--- /dev/null
+
+ drop table DataPoint if exists;
+
+ drop table DataPoint_AUD if exists;
+
+ drop table REVINFO if exists;
+
+ create table DataPoint (
+ id bigint generated by default as identity,
+ name varchar(255),
+ primary key (id)
+ );
+
+ create table DataPoint_AUD (
+ id bigint not null,
+ REV integer not null,
+ REVTYPE tinyint,
+ name varchar(255),
+ primary key (id, REV)
+ );
+
+ create table REVINFO (
+ REV integer generated by default as identity,
+ REVTSTMP bigint,
+ primary key (REV)
+ );
+
+ alter table DataPoint_AUD
+ add constraint FK_7pdslro8w1n74eqwmorrn0hnb
+ foreign key (REV)
+ references REVINFO;
--- /dev/null
+import de.juplo.test.FileComparator;
+
+
+FileComparator comparator = new FileComparator(basedir);
+
+if (!comparator.isEqual("schema-annotations.sql","annotations/target/schema.sql"))
+ return false;
+if (!comparator.isEqual("schema-basic.sql","basic/target/schema.sql"))
+ return false;
+if (!comparator.isEqual("schema-entitymanager.sql","entitymanager/target/schema.sql"))
+ return false;
+if (!comparator.isEqual("schema-envers.sql","envers/target/schema.sql"))
+ return false;
+if (!comparator.isEqual("schema-osgi-managed-jpa.sql","osgi/managed-jpa/target/schema.sql"))
+ return false;
+if (!comparator.isEqual("schema-osgi-unmanaged-jpa.sql","osgi/unmanaged-jpa/target/schema.sql"))
+ return false;
+if (!comparator.isEqual("schema-osgi-unmanaged-native.sql","osgi/unmanaged-native/target/schema.sql"))
+ return false;