Added patch by Joachim Van der Auwera to support package level annotations
[hibernate4-maven-plugin] / src / it / schemaexport-example / schema.sql
1
2     alter table Employee 
3         drop constraint FK_12v0w2dqasbw95xtn8qc2uj83;
4
5     drop table ABTEILUNG if exists;
6
7     drop table Employee if exists;
8
9     create table ABTEILUNG (
10         OID bigint generated by default as identity (start with 1),
11         gender varchar(255),
12         name varchar(255) not null,
13         primary key (OID)
14     );
15
16     create table Employee (
17         OID bigint generated by default as identity (start with 1),
18         name varchar(81) not null,
19         FK_department bigint,
20         primary key (OID)
21     );
22
23     alter table Employee 
24         add constraint FK_12v0w2dqasbw95xtn8qc2uj83 
25         foreign key (FK_department) 
26         references ABTEILUNG;