hibernate-orm
hibernate-orm copied to clipboard
Request revive method `hasNonReadOnlyEntities`
Hi,
I'm a regular user of Hibernate and have been using it extensively. Recently, I've been studying the internal workings of the @Transactional annotation, particularly the difference in behavior when readOnly is set to true and false.
During my debugging process, I noticed that the hasNonReadOnlyEntities method in the PersistenceContext class has been commented out by Gavin King. However, the variable it refers to still exists, and I believe it would be beneficial to either uncomment this method or provide an alternative getter method.
In this commit, I have simply uncommented the hasNonReadOnlyEntities method in the interface. This change would greatly aid in understanding and working with the read-only behavior of transactions in Hibernate.
Thank you for your consideration.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion. For more information on licensing, please check here.
Thanks for your pull request!
This pull request does not follow the contribution rules. Could you have a look?
❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
↳ Offending commits: [2bb25dc47ecc81ce67de14bf2175ad29b748dfa5]
› This message was automatically generated.