HHH-12666 : Add documentation

This commit is contained in:
Gail Badner 2018-07-19 17:52:31 -07:00 committed by Guillaume Smet
parent a76dde0ec6
commit 0bbacccf8d
2 changed files with 9 additions and 2 deletions

View File

@ -897,6 +897,12 @@ Whether the schema migration tool should halt on error, therefore terminating th
`*hibernate.jdbc.sql_exception_converter*` (e.g. Fully-qualified name of class implementing `SQLExceptionConverter`)::
The https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/exception/spi/SQLExceptionConverter.html[`SQLExceptionConverter`] to use for converting `SQLExceptions` to Hibernate's `JDBCException` hierarchy. The default is to use the configured https://docs.jboss.org/hibernate/orm/{majorMinorVersion}/javadocs/org/hibernate/dialect/Dialect.html[`Dialect`]'s preferred `SQLExceptionConverter`.
`*hibernate.native_exception_handling_51_compliance*` (e.g. `true` or `false` (default value))::
Indicates if exception handling for a `SessionFactory` built via Hibernate's native bootstrapping
should behave the same as native exception handling in Hibernate ORM 5.1. When set to `true`,
`HibernateException` will be not wrapped or converted according to the JPA specification. This
setting will be ignored for a `SessionFactory` built via JPA bootstrapping.
[[configurations-session-events]]
=== Session events

View File

@ -903,9 +903,10 @@ public interface AvailableSettings extends org.hibernate.jpa.AvailableSettings {
/**
* Indicates if exception handling for a SessionFactory built via Hibernate's native bootstrapping
* should behave the same as in Hibernate ORM 5.1.
* should behave the same as native exception handling in Hibernate ORM 5.1, When set to {@code true},
* {@link HibernateException} will not be wrapped or converted according to the JPA specification.
* <p/>
* This setting will be ignored if the SessionFactory was built via JPA bootstrapping.
* This setting will be ignored for a SessionFactory built via JPA bootstrapping.
* <p/>
* Values are {@code true} or {@code false}.
* Default value is {@code false}