Added an integration-test, that depends on properties from a persistence.xml
[hibernate4-maven-plugin] / src / it / h4mp-mod / schema.sql
1
2     create table MainEntity (
3         id int8 not null,
4         str varchar(255),
5         primary key (id)
6     );
7
8     create table MainEntity_AUD (
9         id int8 not null,
10         REV int4 not null,
11         REVTYPE int2,
12         str varchar(255),
13         str_MOD boolean,
14         primary key (id, REV)
15     );
16
17     create table REVINFO (
18         REV int4 not null,
19         REVTSTMP int8,
20         primary key (REV)
21     );
22
23     alter table MainEntity_AUD 
24         add constraint FK_kpx35pyi0ssiutbfxbf8klu06 
25         foreign key (REV) 
26         references REVINFO;
27
28     create sequence hibernate_sequence;