[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------< blog.spring:spring-orm-lab >---------------------
[INFO] Building spring-orm-lab 1.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ spring-orm-lab ---
[INFO] skip non existing resourceDirectory /private/tmp/spring-ch23-24/orm-lab/src/main/resources
[INFO] 
[INFO] --- compiler:3.14.0:compile (default-compile) @ spring-orm-lab ---
[INFO] Recompiling the module because of changed source code.
[INFO] Compiling 1 source file with javac [debug release 21] to target/classes
[INFO] 
[INFO] --- exec:3.1.0:java (default-cli) @ spring-orm-lab ---
ENV Java=21.0.11 Spring=6.2.11 Hibernate=6.6.15.Final
10月 02, 2026 4:53:05 下午 org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformation
INFO: HHH000204: Processing PersistenceUnitInfo [name: default]
10月 02, 2026 4:53:05 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate ORM core version 6.6.15.Final
10月 02, 2026 4:53:05 下午 org.hibernate.cache.internal.RegionFactoryInitiator initiateService
INFO: HHH000026: Second-level cache disabled
10月 02, 2026 4:53:05 下午 org.springframework.orm.jpa.persistenceunit.SpringPersistenceUnitInfo addTransformer
信息: No LoadTimeWeaver setup: ignoring JPA class transformer
10月 02, 2026 4:53:05 下午 org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator logConnectionInfo
INFO: HHH10001005: Database info:
	Database JDBC URL [Connecting through datasource 'org.springframework.jdbc.datasource.DriverManagerDataSource@6e5abb27']
	Database driver: undefined/unknown
	Database version: 18.0
	Autocommit mode: undefined/unknown
	Isolation level: undefined/unknown
	Minimum pool size: undefined/unknown
	Maximum pool size: undefined/unknown
10月 02, 2026 4:53:05 下午 org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator initiateService
INFO: HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
Hibernate: set client_min_messages = WARNING
Hibernate: drop table if exists spring_ch24_orm cascade
Hibernate: create table spring_ch24_orm (id integer not null, name varchar(255), primary key (id))
10月 02, 2026 4:53:05 下午 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean buildNativeEntityManagerFactory
信息: Initialized JPA EntityManagerFactory for persistence unit 'default'
Hibernate: select pg_backend_pid()
CONNECTION pid=42307 thread=blog.spring.orm.Chapter24Orm.main()
Hibernate: insert into spring_ch24_orm (name,id) values (?,?)
Hibernate: select count(*) from spring_ch24_orm where id=1
CHECK PASS flush SQL visible inside transaction
OBSERVER id=1 count=0
CHECK PASS flush is not commit: independent connection sees nothing
OBSERVER id=1 count=1
CHECK PASS JpaTransactionManager commit visible independently
Hibernate: insert into spring_ch24_orm (name,id) values (?,?)
OBSERVER id=2 count=0
CHECK PASS flushed insert rolled back
Hibernate: select e1_0.id,e1_0.name from spring_ch24_orm e1_0 where e1_0.id=?
Hibernate: update spring_ch24_orm set name=? where id=?
CHECK PASS commit dirty checking flushes changed managed entity
CHECK PASS Hibernate readOnly transaction uses MANUAL flush and readOnly entity default
Hibernate: select e1_0.id,e1_0.name from spring_ch24_orm e1_0 where e1_0.id=?
CHECK PASS readOnly managed entity mutation is not automatically persisted
10月 02, 2026 4:53:06 下午 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean destroy
信息: Closing JPA EntityManagerFactory for persistence unit 'default'
Hibernate: set client_min_messages = WARNING
Hibernate: drop table if exists spring_ch24_orm cascade
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.653 s
[INFO] Finished at: 2026-10-02T16:53:06+08:00
[INFO] ------------------------------------------------------------------------
