HHH-11945 Make ExceptionConverterImpl use SharedSessionContractImplementor instead of AbstractSharedSessionContract

This commit is contained in:
Guillaume Smet 2017-08-25 17:46:18 +02:00 committed by Vlad Mihalcea
parent 345c0cce17
commit 23752fe169

View File

@ -8,6 +8,7 @@
import java.io.Serializable; import java.io.Serializable;
import java.sql.SQLException; import java.sql.SQLException;
import javax.persistence.EntityExistsException; import javax.persistence.EntityExistsException;
import javax.persistence.EntityNotFoundException; import javax.persistence.EntityNotFoundException;
import javax.persistence.LockTimeoutException; import javax.persistence.LockTimeoutException;
@ -32,6 +33,7 @@
import org.hibernate.dialect.lock.OptimisticEntityLockException; import org.hibernate.dialect.lock.OptimisticEntityLockException;
import org.hibernate.dialect.lock.PessimisticEntityLockException; import org.hibernate.dialect.lock.PessimisticEntityLockException;
import org.hibernate.engine.spi.ExceptionConverter; import org.hibernate.engine.spi.ExceptionConverter;
import org.hibernate.engine.spi.SharedSessionContractImplementor;
import org.hibernate.loader.MultipleBagFetchException; import org.hibernate.loader.MultipleBagFetchException;
/** /**
@ -40,9 +42,9 @@
public class ExceptionConverterImpl implements ExceptionConverter { public class ExceptionConverterImpl implements ExceptionConverter {
private static final EntityManagerMessageLogger log = HEMLogging.messageLogger( ExceptionConverterImpl.class ); private static final EntityManagerMessageLogger log = HEMLogging.messageLogger( ExceptionConverterImpl.class );
private final AbstractSharedSessionContract sharedSessionContract; private final SharedSessionContractImplementor sharedSessionContract;
public ExceptionConverterImpl(AbstractSharedSessionContract sharedSessionContract) { public ExceptionConverterImpl(SharedSessionContractImplementor sharedSessionContract) {
this.sharedSessionContract = sharedSessionContract; this.sharedSessionContract = sharedSessionContract;
} }