Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HHH-9927 - Explicit calls to EntityManager.joinTransaction() with no …
…active JTA transaction should throw a TransactionRequiredException
- Loading branch information
Showing
7 changed files
with
101 additions
and
45 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...src/main/java/org/hibernate/resource/transaction/TransactionRequiredForJoinException.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,25 @@ | |||
/* | |||
* Hibernate, Relational Persistence for Idiomatic Java | |||
* | |||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later. | |||
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. | |||
*/ | |||
package org.hibernate.resource.transaction; | |||
|
|||
import org.hibernate.HibernateException; | |||
|
|||
/** | |||
* Indicates a call to {@link TransactionCoordinator#explicitJoin()} that requires an | |||
* active transaction where there currently is none. | |||
* | |||
* @author Steve Ebersole | |||
*/ | |||
public class TransactionRequiredForJoinException extends HibernateException { | |||
public TransactionRequiredForJoinException(String message) { | |||
super( message ); | |||
} | |||
|
|||
public TransactionRequiredForJoinException(String message, Throwable cause) { | |||
super( message, cause ); | |||
} | |||
} |
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
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
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