1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
| Hibernate: create table HERO ( HERO_ID bigint not null auto_increment, HERO_AGE integer, HERO_NAME varchar(255), primary key (HERO_ID) ) engine=InnoDB Hibernate: create table HERO_BOOK ( HERO_BOOK_ID bigint not null auto_increment, HERO_BOOK_NAME varchar(255), HERO_BOOK_PRICE float, primary key (HERO_BOOK_ID) ) engine=InnoDB Hibernate: create table heroes_mapping ( HERO_ID bigint not null, HERO_BOOK_ID bigint not null, primary key (HERO_ID, HERO_BOOK_ID) ) engine=InnoDB Hibernate: alter table heroes_mapping add constraint FKrkhpo49wk4l3waye5i32x884m foreign key (HERO_BOOK_ID) references HERO_BOOK (HERO_BOOK_ID) Hibernate: alter table heroes_mapping add constraint FKbf749uoxlaf3ys4suui71jx4k foreign key (HERO_ID) references HERO (HERO_ID) Hibernate: insert into HERO (HERO_AGE, HERO_NAME) values (?, ?) Hibernate: insert into HERO_BOOK (HERO_BOOK_NAME, HERO_BOOK_PRICE) values (?, ?) Hibernate: insert into HERO (HERO_AGE, HERO_NAME) values (?, ?) Hibernate: insert into HERO (HERO_AGE, HERO_NAME) values (?, ?) Hibernate: insert into HERO_BOOK (HERO_BOOK_NAME, HERO_BOOK_PRICE) values (?, ?) Hibernate: insert into heroes_mapping (HERO_ID, HERO_BOOK_ID) values (?, ?) Hibernate: insert into heroes_mapping (HERO_ID, HERO_BOOK_ID) values (?, ?) Hibernate: insert into heroes_mapping (HERO_ID, HERO_BOOK_ID) values (?, ?) Hibernate: insert into heroes_mapping (HERO_ID, HERO_BOOK_ID) values (?, ?)
|