mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-11945 Make ExceptionConverterImpl use SharedSessionContractImplementor instead of AbstractSharedSessionContract
This commit is contained in:
parent
345c0cce17
commit
23752fe169
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user