Hibernate @BatchSize differs between H2 and PostgreSQL in 6.2
Goal Enable identical @BatchSize‑driven batch fetching when running Hibernate 6.2 against an in‑memory H2 database locally and against a production PostgreSQL instance. Constraints The Hibernate documentation notes that batch fetching effectiveness is dialect‑dependent and requires the JDBC driver to support statement rewriting (rewriteBatchStatements=true)