HHH-12444 - Introduce BootstrapContext
HHH-12443 - Introduce TypeConfiguration Fix checkstyle errors
This commit is contained in:
parent
6f798598a2
commit
cb6871ff40
|
@ -106,6 +106,7 @@ public interface BootstrapContext {
|
|||
* we migrate away from Hibernate Commons Annotations to Jandex for annotation handling
|
||||
* and XMl->annotation merging.
|
||||
*/
|
||||
@Deprecated
|
||||
ReflectionManager getReflectionManager();
|
||||
|
||||
/**
|
||||
|
|
|
@ -46,4 +46,4 @@ public class PostUpdateEventListenerStandardImpl implements PostUpdateEventListe
|
|||
public boolean requiresPostCommitHanding(EntityPersister persister) {
|
||||
return callbackRegistry.hasRegisteredCallbacks( persister.getMappedClass(), CallbackType.POST_UPDATE );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,9 +102,10 @@ public class EventListenerRegistryImpl implements EventListenerRegistry, Stoppab
|
|||
* @deprecated Use {@link EventListenerRegistryImpl#EventListenerRegistryImpl(BootstrapContext, SessionFactoryImplementor)} instead
|
||||
*/
|
||||
@Deprecated
|
||||
EventListenerRegistryImpl(SessionFactoryImplementor sessionFactory,
|
||||
SessionFactoryOptions sessionFactoryOptions,
|
||||
ServiceRegistryImplementor registry) {
|
||||
EventListenerRegistryImpl(
|
||||
SessionFactoryImplementor sessionFactory,
|
||||
SessionFactoryOptions sessionFactoryOptions,
|
||||
ServiceRegistryImplementor registry) {
|
||||
this.sessionFactory = sessionFactory;
|
||||
|
||||
this.callbackRegistry = new CallbackRegistryImpl();
|
||||
|
|
|
@ -404,8 +404,9 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
|
|||
if ( !propertyName.startsWith( org.hibernate.jpa.AvailableSettings.EVENT_LISTENER_PREFIX ) ) {
|
||||
continue;
|
||||
}
|
||||
final String eventTypeName = propertyName.substring( org.hibernate.jpa.AvailableSettings.EVENT_LISTENER_PREFIX
|
||||
.length() + 1 );
|
||||
final String eventTypeName = propertyName.substring(
|
||||
org.hibernate.jpa.AvailableSettings.EVENT_LISTENER_PREFIX.length() + 1
|
||||
);
|
||||
final EventType eventType = EventType.resolveEventTypeByName( eventTypeName );
|
||||
final EventListenerGroup eventListenerGroup = eventListenerRegistry.getEventListenerGroup( eventType );
|
||||
for ( String listenerImpl : ( (String) entry.getValue() ).split( " ," ) ) {
|
||||
|
|
|
@ -9,4 +9,3 @@
|
|||
* Internal details of implementing support for JPA callbacks
|
||||
*/
|
||||
package org.hibernate.jpa.event.internal;
|
||||
|
||||
|
|
|
@ -9,4 +9,3 @@
|
|||
* The SPI contracts for supporting JPA lifecycle callbacks.
|
||||
*/
|
||||
package org.hibernate.jpa.event.spi;
|
||||
|
||||
|
|
Loading…
Reference in New Issue