Skip to content

feat: wire Hibernate 5 adapter to GormRegistry O(M+N) scaling#15782

Closed
borinquenkid wants to merge 1 commit into
feat/gorm-registry-core-testsfrom
feat/gorm-registry-h5
Closed

feat: wire Hibernate 5 adapter to GormRegistry O(M+N) scaling#15782
borinquenkid wants to merge 1 commit into
feat/gorm-registry-core-testsfrom
feat/gorm-registry-h5

Conversation

@borinquenkid

Copy link
Copy Markdown
Member

Summary

Wires the Hibernate 5 adapter into the GormRegistry introduced in #15780.

  • HibernateGormApiFactory — new factory that creates HibernateGormStaticApi, HibernateGormInstanceApi, and HibernateGormValidationApi instances typed to HibernateDatastore
  • HibernateGormEnhancer.registerConstraints() — registers HibernateGormApiFactory with GormRegistry so Hibernate-typed APIs are used for all H5 entities
  • GrailsDataHibernate5TckManager — updated to participate in the registry lifecycle
  • TenantBoundHibernateTemplate — new template subclass that binds the current tenant to the Hibernate session for DISCRIMINATOR multi-tenancy
  • Unit tests: HibernateGormApiFactorySpec, GormRegistryScalabilitySpec, Hibernate5TenantContextProfilingSpec

Test plan

  • ./gradlew :grails-data-hibernate5:test passes
  • TCK suite passes with -Phibernate5.gorm.suite

Stack

🤖 Generated with Claude Code

@borinquenkid borinquenkid force-pushed the feat/gorm-registry-core-tests branch from 5e565ae to 00b0fe6 Compare June 27, 2026 17:36
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-h5 branch from c9a86d8 to 112af9d Compare June 27, 2026 17:36
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-core-tests branch from 00b0fe6 to 894bd24 Compare June 27, 2026 18:14
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-h5 branch from 112af9d to 964143d Compare June 27, 2026 18:14
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-core-tests branch from 894bd24 to 65053e3 Compare June 27, 2026 20:46
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-h5 branch from 964143d to 22a1b06 Compare June 27, 2026 20:46
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-core-tests branch from 65053e3 to 1910711 Compare June 27, 2026 21:50
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-h5 branch from 22a1b06 to 1f3125e Compare June 27, 2026 22:03
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-core-tests branch from 1910711 to b91daa6 Compare June 27, 2026 22:23
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-h5 branch from 1f3125e to cc888a0 Compare June 27, 2026 22:23
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-core-tests branch from b91daa6 to 14704c2 Compare June 27, 2026 22:58
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-h5 branch 2 times, most recently from 532480b to 8294745 Compare June 28, 2026 00:18
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-core-tests branch from 14704c2 to 1dd696a Compare June 28, 2026 00:52
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-h5 branch from 8294745 to c71045d Compare June 28, 2026 00:53
Register HibernateGormApiFactory with GormRegistry in HibernateGormEnhancer,
wire GrailsDataHibernate5TckManager to the new registry lifecycle, and update
affected Hibernate 5 tests and TCK specs to use the registry-based API path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-core-tests branch from 1dd696a to c5d67bd Compare June 28, 2026 01:35
@borinquenkid borinquenkid force-pushed the feat/gorm-registry-h5 branch from c71045d to bde6eff Compare June 28, 2026 01:35
@testlens-app

testlens-app Bot commented Jun 28, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: bde6eff
▶️ Tests: 1657 executed
⚪️ Checks: 39/39 completed


Learn more about TestLens at testlens.app.

@borinquenkid

Copy link
Copy Markdown
Member Author

Superseded by #15780 — the consolidated GormRegistry core-impl PR wires the in-build adapters directly (Hibernate 5/7 and MongoDB via a registered GormApiFactory; SimpleMap and GraphQL via the base GormStaticApi) and is stabilized green. The unique unit-test coverage from this stack was harvested into #15790. Closing as superseded; the branch is retained for reference (not deleted).

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.

1 participant