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