Skip to content

v4.2.0 — Owned pool autocommit fix; BOM; inferred entity types

Latest

Choose a tag to compare

@JExcellence JExcellence released this 26 Oct 07:58
· 17 commits to master since this release
Immutable release. Only release title and notes can be modified.

Fixed — critical, affects PostgreSQL & MySQL

  • The owned HikariCP pool now disables autocommit (setAutoCommit(false)). JEHibernate told Hibernate the pool had autocommit off while leaving HikariCP at its true default, so commits were rejected on PostgreSQL and MySQL/MariaDB when using the JEHibernate-owned pool (H2 tolerated it). Present in 4.0.0–4.1.0. Consumers on those databases with the owned pool should upgrade.

Added

  • jehibernate-bom — a Maven BOM that aligns the versions of all JEHibernate modules. Import it once and omit per-module versions.
  • Entity-class-inferring repository constructors — repositories can omit the Class<T> argument: super(executor, emf) on AbstractCrudRepository, super(executor, emf, keyExtractor) on AbstractCachedRepository. The explicit constructors remain for types that can't be resolved by reflection.

Changed

  • AbstractCrudRepository.findAllMatching(Predicate) Javadoc now warns it is an in-memory full-table scan and points to query() / findAll(Specification). (No behaviour change.)

Full details: CHANGELOG.