HHH-12444 - Introduce BootstrapContext

HHH-12443 - Introduce TypeConfiguration

Fix checkstyle errors
This commit is contained in:
Andrea Boriero 2018-03-23 13:45:10 +00:00 committed by Steve Ebersole
parent 6f798598a2
commit cb6871ff40
6 changed files with 9 additions and 8 deletions

View File

@ -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();
/**

View File

@ -46,4 +46,4 @@ public class PostUpdateEventListenerStandardImpl implements PostUpdateEventListe
public boolean requiresPostCommitHanding(EntityPersister persister) {
return callbackRegistry.hasRegisteredCallbacks( persister.getMappedClass(), CallbackType.POST_UPDATE );
}
}
}

View File

@ -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();

View File

@ -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( " ," ) ) {

View File

@ -9,4 +9,3 @@
* Internal details of implementing support for JPA callbacks
*/
package org.hibernate.jpa.event.internal;

View File

@ -9,4 +9,3 @@
* The SPI contracts for supporting JPA lifecycle callbacks.
*/
package org.hibernate.jpa.event.spi;