mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-09 04:34:49 +00:00
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 @@ private void handlePostUpdate(Object entity, EventSource source) {
|
||||
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 @@ private void prepareEventListeners(MetadataImplementor metadata) {
|
||||
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…
x
Reference in New Issue
Block a user