Refined reimplementation of the plugin for Hibernate 5.x
[hibernate4-maven-plugin] / src / it / schemaexport-example / schema.sql
1
2     create sequence hibernate_sequence start with 1 increment by 1;
3
4     create table ABTEILUNG (
5         OID bigint not null,
6         gender varchar(255),
7         name varchar(255) not null,
8         primary key (OID)
9     );
10
11     create table Employee (
12         OID bigint not null,
13         name varchar(255) not null,
14         FK_department bigint,
15         primary key (OID)
16     );
17
18     alter table Employee 
19         add constraint FKps0mm7o60mrhle838yeh1u1rh 
20         foreign key (FK_department) 
21         references ABTEILUNG;