e8f93baefe584a1592a0f65f655a2d7e171e07ee
[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         name varchar(255) not null,
12         primary key (OID)
13     );
14
15     create table Employee (
16         OID bigint generated by default as identity (start with 1),
17         name varchar(81) not null,
18         FK_department bigint,
19         primary key (OID)
20     );
21
22     alter table Employee 
23         add constraint FK_12v0w2dqasbw95xtn8qc2uj83 
24         foreign key (FK_department) 
25         references ABTEILUNG;