-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-19008 Clean up FastSessionServices which had become a bucket to dump things in #9562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
introduce EventListenerGroups
| @Override | ||
| protected boolean hasPostCommitEventListeners() { | ||
| for ( PostDeleteEventListener listener: getFastSessionServices().eventListenerGroup_POST_COMMIT_DELETE.listeners() ) { | ||
| for ( PostDeleteEventListener listener: getEventListenerGroups().eventListenerGroup_POST_COMMIT_DELETE.listeners() ) { |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
EventListenerGroup.listeners
| || eventListenerGroups.eventListenerGroup_POST_COMMIT_DELETE.count() > 0 | ||
| || eventListenerGroups.eventListenerGroup_POST_DELETE.count() > 1 | ||
| || eventListenerGroups.eventListenerGroup_POST_DELETE.count() == 1 | ||
| && !(eventListenerGroups.eventListenerGroup_POST_DELETE.listeners().iterator().next() |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
EventListenerGroup.listeners
|
|
||
| @Internal @Incubating // find a new home for this operation | ||
| public final FormatMapper getJsonFormatMapper() { | ||
| return getSessionFactory().getSessionFactoryOptions().getJsonFormatMapper(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
TypeConfiguration.getSessionFactory
|
|
||
| @Internal @Incubating // find a new home for this operation | ||
| public final FormatMapper getXmlFormatMapper() { | ||
| return getSessionFactory().getSessionFactoryOptions().getXmlFormatMapper(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
TypeConfiguration.getSessionFactory
…ence expose them via BootstrapContext and SessionFactoryImplementor
| context.getBootstrapContext().getClassLoaderService() | ||
| .classForName( auxDbObjectImplClass ) | ||
| .newInstance(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
introduce
EventListenerGroupsSee https://hibernate.atlassian.net/browse/HHH-19008
[Please describe here what your change is about]
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.