borinquenkid opened a new pull request, #15779: URL: https://github.com/apache/grails-core/pull/15779
## Summary Prerequisite for the GormRegistry O(M+N) scaling stack. Introduces low-level infrastructure in `grails-datastore-core` that the GormRegistry layer depends on: - Add `SessionResolver` and `ThreadLocalSessionResolver` for thread-safe session lookup decoupled from a specific `Datastore` reference - Extend `AbstractDatastore`, `Datastore`, and `DatastoreUtils` with hooks for registry lifecycle events (register/deregister on open/close) - Add `MappingContext` and `AbstractMappingContext` extensions needed by `GormRegistry` for entity lookup - Minor additions to `AbstractPersistentEntity`, `ClassUtils`, `DirtyCheckingSupport`, `ConnectionSourceSettingsBuilder`, `CustomizableRollbackTransactionAttribute`, `AstUtils` This PR carries no GORM API changes and has no dependency on any GormRegistry class — it can be reviewed and merged independently. ## Test plan - [ ] `./gradlew :grails-datastore-core:test` passes - [ ] New specs: `AbstractDatastoreSpec`, `SessionResolverIntegrationSpec`, `ThreadLocalSessionResolverSpec` ## Stack This is the prereq for: - `feat/gorm-registry-core-impl` — GormRegistry implementation - `feat/gorm-registry-core-tests` — GormRegistry test suite - Per-adapter wiring PRs (H5, MongoDB, Neo4j, Simple, misc, H7) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
