Skip to content

Use the right @since for the classes of GORM for Hibernate 7 - #16508

Merged
jdaugherty merged 2 commits into
8.0.xfrom
docs/hibernate7-since-8.0
Oct 4, 2026
Merged

jdaugherty merged 2 commits into
8.0.xfrom
docs/hibernate7-since-8.0

Conversation

@matrei

@matrei matrei commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

25 classes in grails-data-hibernate7/core say @since 7.0 or @since 7.0.0, but no Grails 7 release has Hibernate 7 support. The version refers to Hibernate 7, not to the Grails release that introduces the class.

New in Grails 8

24 of them do not exist under the same name in any Grails 7 release. Most were added to the module between December 2025 and April 2026. JpaCriteriaQueryCreator started in the Hibernate 6 module in August 2025, which was also only on the 8.0 line. Some contain code moved out of older classes, such as the subclass binders, but each is a new class. They first shipped in 8.0.0-M2 or later and now say @since 8.0. That matches the rest of the module, and the Hibernate 5 copies of the proxy classes added on 8.0.x, which already say @since 8.0:

  • mapping: JoinedSubClassBinder, SingleTableSubclassBinder, UnionSubclassBinder, GrailsNativeGenerator, HibernateMappingKeyword, MultiTenantFilterBinder, MultiTenantFilterDefinitionBinder
  • proxies: ByteBuddyGroovyInterceptor, ByteBuddyGroovyProxyFactory, GrailsProxyFactoryFactory, GroovyProxyInterceptorLogic
  • queries: AliasRegistry, ExpressionResolver, GrailsQueryFlushMode, Hibernate7CountProjection, HibernatePagedResultList, HqlListQueryBuilder, JoinTracker, JpaCriteriaQueryCreator, JpaProjectionAdapter, JpaProjectionTranslator, JpaQueryContext, MutationHqlQuery, PredicateGenerator

Copied from Hibernate 5

org.grails.orm.hibernate.proxy.HibernateProxyHandler is the same class as in GORM for Hibernate 5, with the same name and interfaces. It was copied with @since 1.2.2, and later changed to @since 7.0 when it was reworked. It now says @since 1.2.2 again, as the Hibernate 5 class does.

No @author tags

20 of the 25 classes had @author tags, 25 in all. They are removed. Most were added in 2026, in the same commits as @since 7.0, and named authors who did not write the class. Graeme Rocher and burt appear on classes that are new in Grails 8. Some of those contain code moved out of older classes, but the class itself is new. Git history records who wrote what.

Only the Javadoc changes.

@matrei matrei changed the title Use @since 8.0 for the classes of GORM for Hibernate 7 Use @since 8.0 for the classes of GORM for Hibernate 7 Oct 4, 2026
@matrei matrei changed the title Use @since 8.0 for the classes of GORM for Hibernate 7 Use the right @since for the classes of GORM for Hibernate 7 Oct 4, 2026
No Grails 7 release has Hibernate 7 support, so @SInCE 7.0 and 7.0.0
named a release that never contained these classes. The classes that
are new in Grails 8 now say 8.0. HibernateProxyHandler is the same
class as in GORM for Hibernate 5 and keeps its @SInCE 1.2.2.
@matrei
matrei force-pushed the docs/hibernate7-since-8.0 branch from 16bf332 to 841f6fb Compare October 4, 2026 10:13
Most were added together with @SInCE 7.0 and named authors of older
classes on classes that are new in Grails 8.
@matrei matrei changed the title Use the right @since for the classes of GORM for Hibernate 7 Use the right @since and no @author for the classes of GORM for Hibernate 7 Oct 4, 2026
@matrei matrei changed the title Use the right @since and no @author for the classes of GORM for Hibernate 7 Use the right @since for the classes of GORM for Hibernate 7 Oct 4, 2026
@matrei matrei added this to the grails:8.0.0 milestone Oct 4, 2026
@codecov

codecov Bot commented Oct 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.4039%. Comparing base (620d549) to head (fa7ed61).

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##                8.0.x     #16508        +/-   ##
==================================================
- Coverage     59.4048%   59.4039%   -0.0009%     
+ Complexity      24859      24858         -1     
==================================================
  Files            2171       2171                
  Lines          108237     108237                
  Branches        19744      19744                
==================================================
- Hits            64298      64297         -1     
- Misses          35001      35003         +2     
+ Partials         8938       8937         -1     

see 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@testlens-app

testlens-app Bot commented Oct 4, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: fa7ed61
▶️ Tests: 94485 executed
⚪️ Checks: 91/91 completed


Learn more about TestLens at testlens.app/docs.

@jdaugherty
jdaugherty merged commit 42f465d into 8.0.x Oct 4, 2026
94 checks passed
@jdaugherty
jdaugherty deleted the docs/hibernate7-since-8.0 branch October 4, 2026 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants