borinquenkid opened a new pull request, #16521:
URL: https://github.com/apache/grails-core/pull/16521

   ## Problem
   `HibernateGormStaticApi.get(Serializable)` returned `session.find(...)` 
without unwrapping, so `Author.get(id)` could return an existing session proxy. 
Hibernate 5 unwraps in both branches and `read()` here already does.
   
   ## Fix
   Wrap the non-multi-tenant lookup in `proxyHandler.unwrap(...)`.
   
   ## Tests
   The TCK `DirtyCheckingSpec` was skipped on Hibernate 7 with a comment 
claiming `DirtyCheckingSpecHibernate7` replaces it; that spec tests 
derived/transient properties, not this. Removed the skip so "test relationships 
not marked dirty when domain objects are used" runs; it fails without the fix. 
`*DirtyChecking*`, `*Proxy*`, `*Get*`, `*Read*`, `*Lazy*`, 
`grails.gorm.tests.*`: 857 passed.
   
   🤖 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]

Reply via email to