Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: cb35e0e734789e1f1d9b6ee3bbc66816ddbc353d
https://github.com/hibernate/hibernate-orm/commit/cb35e0e734789e1f1d9b6ee...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-12-05 (Mon, 05 Dec 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/schema/CheckTest.java
M documentation/src/test/java/org/hibernate/userguide/sql/SQLTest.java
M hibernate-core/src/main/java/org/hibernate/JDBCException.java
M hibernate-core/src/main/java/org/hibernate/dialect/function/SqlFunction.java
M
hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticReadUpdateLockingStrategy.java
M
hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticWriteUpdateLockingStrategy.java
M hibernate-core/src/main/java/org/hibernate/dialect/lock/UpdateLockingStrategy.java
M
hibernate-core/src/main/java/org/hibernate/dialect/temptable/TemporaryTableHelper.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/ResultSetReturnImpl.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/AbstractMutationExecutor.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/MutationExecutorPostInsert.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/spi/ResultSetReturn.java
M hibernate-core/src/main/java/org/hibernate/exception/SQLGrammarException.java
M hibernate-core/src/main/java/org/hibernate/generator/internal/SourceGeneration.java
M hibernate-core/src/main/java/org/hibernate/id/IncrementGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/insert/AbstractSelectingDelegate.java
M hibernate-core/src/main/java/org/hibernate/id/insert/GetGeneratedKeysDelegate.java
M hibernate-core/src/main/java/org/hibernate/id/insert/InsertReturningDelegate.java
M hibernate-core/src/main/java/org/hibernate/internal/ExceptionConverterImpl.java
M
hibernate-core/src/main/java/org/hibernate/sql/model/jdbc/OptionalTableUpdateOperation.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/embeddables/EmbeddableIntegratorTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/immutable/ImmutableEntityUpdateQueryHandlingModeExceptionTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/join/JoinTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetomany/OneToManyTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/OptionalOneToOneMappedByTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/OptionalOneToOnePKJCTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/tableperclass/TablePerClassTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/uniqueconstraint/UniqueConstraintTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/annotations/uniqueconstraint/UniqueConstraintThrowsConstraintViolationExceptionTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/ExceptionExpectations.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/exceptionhandling/NonActiveTransactionSessionFindJdbcExceptionHandlingTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/interceptor/InterceptorTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/NamedQueryTransactionFailureTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/criteria/nulliteral/CriteriaLiteralsTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/exception/ExceptionTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/jpa/transaction/TransactionJoiningTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/manytomanyassociationclass/surrogateid/generated/ManyToManyAssociationClassGeneratedIdTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/mapping/onetoone/hhh9798/OneToOneJoinTableTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/ops/CreateTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/tenantid/TenantIdTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/tenantlongid/TenantLongIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/tenantuuid/TenantUuidTest.java
Log Message:
-----------
HHH-15797 better error messages
1. include the SQL in some SQLGrammarExceptions where it was missing
2. append the SQL to the error message in JDBCException
3. don't wrap HibernateException in PersistenceException b/c it is one already