Skip to content

Releases

hefesto-hibernate 4.1.0 / hefesto-base 2.1.0 - PostgreSQL functions, whereAny null-check fix

Choose a tag to compare

@RobertoMike RobertoMike released this 03 Dec 09:07
fead9ce

hefesto-hibernate 4.1.0 / hefesto-base 2.1.0

Fixed (hefesto-base 2.1.0)

  • whereIsNull / whereIsNotNull inside whereAny { } and the top-level orWhereIsNull / orWhereIsNotNull were joined with AND; they are joined with OR now. Queries that used them return the rows the OR describes (usually more than before).

Added (hefesto-hibernate 4.1.0), PostgreSQL only

Package io.github.robertomike.hefesto.postgres. Nothing is registered on MySQL or other dialects.

  • HQL/JPQL functions: jsonb_text, jsonb_without, jsonb_has_key, jsonb_typeof, regexp_replace, try_advisory_xact_lock.
  • PostgresCriteria: typed Criteria builders, with values bound as parameters.
  • PostgresLocks.xactLock / tryXactLock: transaction-level advisory locks on hashtext(key).

Full notes: RELEASE_4.1.0.md

implementation("io.github.robertomike:hefesto-hibernate:4.1.0")

hefesto-hibernate 4.0.0 - Hibernate 7 + module consolidation

Choose a tag to compare

@RobertoMike RobertoMike released this 17 Sep 13:03
a1a160b

Publishes hefesto-hibernate 4.0.0 to Maven Central. hefesto-base is unchanged (still 2.0.0, already published) and is not part of this release.

Highlights

  • Upgraded to Hibernate 7.4.7.Final (was 6.0.0.Final); hibernate-core groupId moves from org.hibernate to org.hibernate.orm
  • hefesto-hibernate-base and hefesto-hibernate-hql are retired as separate artifacts - hefesto-hibernate now bundles both the Criteria Builder (Hefesto.make(...)) and the HQL query builder (hql.Hefesto.make(...)) in one jar
  • Two internal HQL query-generation fixes required by Hibernate 7's stricter HQL semantic analyzer (no public API change):
    • HQL executor now always emits an explicit select <alias> clause
    • find_in_set(...) result is now cast to integer for the FIND_IN_SET/NOT_FIND_IN_SET operators
  • All ~485 existing tests pass unchanged; JMH benchmarks show no measurable overhead vs raw Hibernate 7 (see RELEASE_4.0.0.md)
  • Hibernate 6.x line preserved on the legacy/hibernate-6 branch for maintenance-only patches

Breaking changes

  • Minimum Hibernate version is now 7.0
  • Depend on hefesto-hibernate alone if you previously used hefesto-hibernate-base or hefesto-hibernate-hql
  • Update any hibernate-core groupId pin/exclusion from org.hibernate to org.hibernate.orm
  • To stay on Hibernate 6, use hefesto-hibernate:3.0.0 or track legacy/hibernate-6

Installation

implementation("io.github.robertomike:hefesto-hibernate:4.0.0")

See RELEASE_4.0.0.md for full details.

Kotlin migration and major update

Choose a tag to compare

@RobertoMike RobertoMike released this 10 Nov 20:01

Major Changes:

Migrate core modules to Kotlin
Add whereField() for field-to-field comparisons
Move WhereField to shared module for reusability
Add comprehensive KDoc documentation (49 files)
Enhance SubQueryContext with whereField support

Features:

whereField() supports all comparison operators
Works with same entity, joins, and subqueries
Automatic field resolution and qualification
Type-safe implementations in both Criteria Builder and HQL

Tests:

Add 33 new tests (17 Criteria Builder + 16 HQL)
Test coverage for all operators and scenarios
Subquery correlation tests
Cross-join field comparison tests

Documentation:

Complete KDoc for all constructors
Document all utility classes
Add examples for all action classes
Update FEATURES.md with detailed examples

Breaking Changes:

Minimum Java version: 17
Minimum Hibernate version: 6.0
Kotlin 1.9.22 required for Kotlin projects"

2.1.3-all

Choose a tag to compare

@RobertoMike RobertoMike released this 28 Nov 18:32

Fix: solving problem with the interface HibernateModel and some modifications

1.1.2-hefesto-hibernate

Choose a tag to compare

Fix: solving problems with HibernateModel interface

1.0.2-hefesto-shared-hibernate

Choose a tag to compare

Fix: solving problems with HibernateModel interface

1.0.2-hefesto-hql-hibernate

Choose a tag to compare

Fix: solving problems with HibernateModel interface

2.1.2-all

Choose a tag to compare

@RobertoMike RobertoMike released this 08 Nov 20:44
Feat: updating versions

1.1.1-hefesto-hibernate

Choose a tag to compare

Feat: merging with master and resolving problems of versions and othe…

1.0.1-hefesto-shared-hibernate

Choose a tag to compare

Feat: merging with master and resolving problems of versions and othe…