-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-18760 - CockroachDB dialect remaps serialization error
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
hibernate-core/src/main/java/org/hibernate/exception/TransactionSerializationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* SPDX-License-Identifier: LGPL-2.1-or-later | ||
* Copyright Red Hat Inc. and Hibernate Authors | ||
*/ | ||
package org.hibernate.exception; | ||
|
||
import org.hibernate.JDBCException; | ||
|
||
import java.sql.SQLException; | ||
/** | ||
* A {@link JDBCException} indicating a transaction failed because it could not be placed into a serializable ordering | ||
* among all of the currently-executing transactions | ||
* | ||
* @author Karel Maesen | ||
*/ | ||
public class TransactionSerializationException extends JDBCException { | ||
public TransactionSerializationException(String message, SQLException cause) { | ||
super( message, cause ); | ||
} | ||
|
||
public TransactionSerializationException(String message, SQLException cause, String sql) { | ||
super( message, cause, sql ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters