Makes the session available to ISQLExceptionConverter.

Enables more advanced exception translations based on the persistence
context.

When using batching, details about the entity name and ID which caused a failure are unavailable to the exception converter. Given the name of a violated constraint, however, it is often possible to determine the offending entity by type if we have access to the persistence context. This commit makes the relevant information available to exception converters.