Refined reimplementation of the plugin for Hibernate 5.x
[hibernate4-maven-plugin] / src / it / tutorials / schema-osgi-unmanaged-native.sql
index 3716535..9f02ba4 100644 (file)
@@ -1,12 +1,8 @@
 
 
-    drop table DataPoint if exists;
-
-    drop table DataPoint_AUD if exists;
-
-    drop table REVINFO if exists;
+    create sequence hibernate_sequence start with 1 increment by 1;
 
     create table DataPoint (
 
     create table DataPoint (
-        id bigint generated by default as identity,
+        id bigint not null,
         name varchar(255),
         primary key (id)
     );
         name varchar(255),
         primary key (id)
     );
@@ -26,6 +22,6 @@
     );
 
     alter table DataPoint_AUD 
     );
 
     alter table DataPoint_AUD 
-        add constraint FK_7pdslro8w1n74eqwmorrn0hnb 
+        add constraint FK43jw6b5mtbfxur0xhyjxynbea 
         foreign key (REV) 
         references REVINFO;
         foreign key (REV) 
         references REVINFO;