· 8 years ago · Mar 20, 2018, 11:40 AM
1Hibernate: drop table author if exists
2Hibernate: drop table author_books if exists
3Hibernate: drop table book if exists
4Hibernate: drop table book_authors if exists
5Hibernate: drop sequence if exists hibernate_sequence
6Hibernate: create sequence hibernate_sequence start with 1 increment by 1
7Hibernate: create table author (id bigint not null, first_name varchar(255), last_name varchar(255), primary key (id))
8Hibernate: create table author_books (author_id bigint not null, books_id bigint not null, primary key (author_id, books_id))
9Hibernate: create table book (id bigint not null, isbn varchar(255), publisher varchar(255), title varchar(255), primary key (id))
10Hibernate: create table book_authors (book_id bigint not null, authors_id bigint not null, primary key (book_id, authors_id))
11Hibernate: alter table author_books add constraint FKr514ej8rhei197wx3nrvp0qie foreign key (books_id) references book
12Hibernate: alter table author_books add constraint FKfvabqdr9njwv4khjqkf1pbmma foreign key (author_id) references author
13Hibernate: alter table book_authors add constraint FK551i3sllw1wj7ex6nir16blsm foreign key (authors_id) references author
14Hibernate: alter table book_authors add constraint FKs4xm7q8i3uxvaiswj1c35nnxw foreign key (book_id) references book
15
162018-03-20 12:34:15.864 WARN 8530 --- [ restartedMain] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning