Repository navigation
Releases
Releases · RobertoMike/HefestoSql
hefesto-hibernate 4.1.0 / hefesto-base 2.1.0 - PostgreSQL functions, whereAny null-check fix
hefesto-hibernate 4.1.0 / hefesto-base 2.1.0
Fixed (hefesto-base 2.1.0)
whereIsNull/whereIsNotNullinsidewhereAny { }and the top-levelorWhereIsNull/orWhereIsNotNullwere 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 onhashtext(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
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-coregroupId moves fromorg.hibernatetoorg.hibernate.orm hefesto-hibernate-baseandhefesto-hibernate-hqlare retired as separate artifacts -hefesto-hibernatenow 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 tointegerfor theFIND_IN_SET/NOT_FIND_IN_SEToperators
- HQL executor now always emits an explicit
- 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-6branch for maintenance-only patches
Breaking changes
- Minimum Hibernate version is now 7.0
- Depend on
hefesto-hibernatealone if you previously usedhefesto-hibernate-baseorhefesto-hibernate-hql - Update any
hibernate-coregroupId pin/exclusion fromorg.hibernatetoorg.hibernate.orm - To stay on Hibernate 6, use
hefesto-hibernate:3.0.0or tracklegacy/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
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
Fix: solving problem with the interface HibernateModel and some modifications
1.1.2-hefesto-hibernate
Fix: solving problems with HibernateModel interface
1.0.2-hefesto-hql-hibernate
Fix: solving problems with HibernateModel interface
2.1.2-all
1.1.1-hefesto-hibernate
Feat: merging with master and resolving problems of versions and othe…