1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Hibernate: create table t_animal (id integer not null, name varchar(12) not null, age integer not null, version integer not null, primary key (id, name)) engine=InnoDB Hibernate: create table t_person (id integer not null, name varchar(12) not null, age integer not null, version integer not null, primary key (id, name)) engine=InnoDB 2020-04-29 22:23:15.874 INFO 5785 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 2020-04-29 22:23:15.882 INFO 5785 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2020-04-29 22:23:16.152 WARN 5785 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : 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 2020-04-29 22:23:16.258 INFO 5785 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2020-04-29 22:23:16.445 INFO 5785 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '' 2020-04-29 22:23:16.447 INFO 5785 --- [ main] c.p.m.MultiPrimaryApplication : Started MultiPrimaryApplication in 3.312 seconds (JVM running for 3.67) Hibernate: select person0_.id as id1_1_0_, person0_.name as name2_1_0_, person0_.age as age3_1_0_, person0_.version as version4_1_0_ from t_person person0_ where person0_.id=? and person0_.name=? Hibernate: insert into t_person (age, version, id, name) values (?, ?, ?, ?) Hibernate: select animal0_.id as id1_0_0_, animal0_.name as name2_0_0_, animal0_.age as age3_0_0_, animal0_.version as version4_0_0_ from t_animal animal0_ where animal0_.id=? and animal0_.name=? Hibernate: insert into t_animal (age, version, id, name) values (?, ?, ?, ?) Hibernate: select person0_.id as id1_1_0_, person0_.name as name2_1_0_, person0_.age as age3_1_0_, person0_.version as version4_1_0_ from t_person person0_ where person0_.id=? and person0_.name=? 2020-04-29 22:23:16.520 INFO 5785 --- [ main] c.p.m.MultiPrimaryApplication : Get the person by id : 1 , com.proliu.multiprimary.entity.Person@7f642bf Hibernate: select animal0_.id as id1_0_0_, animal0_.name as name2_0_0_, animal0_.age as age3_0_0_, animal0_.version as version4_0_0_ from t_animal animal0_ where animal0_.id=? and animal0_.name=? 2020-04-29 22:23:16.523 INFO 5785 --- [ main] c.p.m.MultiPrimaryApplication : Get the animal by id : 1 , com.proliu.multiprimary.entity.Animal@653a5967
|