projects
/
hibernate4-maven-plugin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If the pluging is aborted, because of an exception, a stracktrace is printed
[hibernate4-maven-plugin]
/
src
/
it
/
schemaexport-example
/
schema.sql
diff --git
a/src/it/schemaexport-example/schema.sql
b/src/it/schemaexport-example/schema.sql
index
e8f93ba
..
f1729b9
100644
(file)
--- a/
src/it/schemaexport-example/schema.sql
+++ b/
src/it/schemaexport-example/schema.sql
@@
-1,25
+1,20
@@
-
- alter table Employee
- drop constraint FK_12v0w2dqasbw95xtn8qc2uj83;
-
- drop table ABTEILUNG if exists;
-
- drop table Employee if exists;
+create sequence hibernate_sequence start with 1 increment by 1;
create table ABTEILUNG (
create table ABTEILUNG (
- OID bigint generated by default as identity (start with 1),
+ OID bigint not null,
+ gender varchar(255),
name varchar(255) not null,
primary key (OID)
);
create table Employee (
name varchar(255) not null,
primary key (OID)
);
create table Employee (
- OID bigint
generated by default as identity (start with 1)
,
- name varchar(
81
) not null,
+ OID bigint
not null
,
+ name varchar(
255
) not null,
FK_department bigint,
primary key (OID)
);
alter table Employee
FK_department bigint,
primary key (OID)
);
alter table Employee
- add constraint FK
_12v0w2dqasbw95xtn8qc2uj83
+ add constraint FK
ps0mm7o60mrhle838yeh1u1rh
foreign key (FK_department)
references ABTEILUNG;
foreign key (FK_department)
references ABTEILUNG;