Configured the 5.1.17-tutorials as integration-tests for the plugin
[hibernate4-maven-plugin] / src / it / tutorials-4.3.9 / schema-osgi-unmanaged-native.sql
1 create sequence hibernate_sequence start with 1 increment by 1;
2
3     create table DataPoint (
4         id bigint not null,
5         name varchar(255),
6         primary key (id)
7     );
8
9     create table DataPoint_AUD (
10         id bigint not null,
11         REV integer not null,
12         REVTYPE tinyint,
13         name varchar(255),
14         primary key (id, REV)
15     );
16
17     create table REVINFO (
18         REV integer generated by default as identity,
19         REVTSTMP bigint,
20         primary key (REV)
21     );
22
23     alter table DataPoint_AUD 
24         add constraint FK43jw6b5mtbfxur0xhyjxynbea 
25         foreign key (REV) 
26         references REVINFO;