projects
/
hibernate4-maven-plugin
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
WIP
[hibernate4-maven-plugin]
/
src
/
it
/
h4mp-mod
/
schema.sql
1
create sequence hibernate_sequence start 1 increment 1;
2
3
create table MainEntity (
4
id int8 not null,
5
str varchar(255),
6
primary key (id)
7
);
8
9
create table MainEntity_AUD (
10
id int8 not null,
11
REV int4 not null,
12
REVTYPE int2,
13
str varchar(255),
14
str_MOD boolean,
15
primary key (id, REV)
16
);
17
18
create table REVINFO (
19
REV int4 not null,
20
REVTSTMP int8,
21
primary key (REV)
22
);
23
24
alter table MainEntity_AUD
25
add constraint FKdyho0e2yvr52e1nf5rt18k2ec
26
foreign key (REV)
27
references REVINFO;