Skip to content

Commit 1b56e3d

Browse files
committed
add some jdoc @sees to equivalent JPA exception types
1 parent b7cfe00 commit 1b56e3d

File tree

7 files changed

+11
-0
lines changed

7 files changed

+11
-0
lines changed

hibernate-core/src/main/java/org/hibernate/NonUniqueResultException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*
1717
* @see jakarta.persistence.Query#getSingleResult
1818
* @see org.hibernate.query.SelectionQuery#getSingleResult
19+
* @see jakarta.persistence.NonUniqueResultException
1920
*/
2021
public class NonUniqueResultException extends HibernateException {
2122

hibernate-core/src/main/java/org/hibernate/PessimisticLockException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Thrown when a pessimistic locking conflict occurs.
1111
*
1212
* @author Scott Marlow
13+
*
14+
* @see jakarta.persistence.PessimisticLockException
1315
*/
1416
public class PessimisticLockException extends JDBCException {
1517
/**

hibernate-core/src/main/java/org/hibernate/QueryTimeoutException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*
1515
* @see jakarta.persistence.Query#setTimeout
1616
* @see org.hibernate.query.CommonQueryContract#setTimeout
17+
* @see jakarta.persistence.QueryTimeoutException
1718
*/
1819
public class QueryTimeoutException extends JDBCException {
1920
/**

hibernate-core/src/main/java/org/hibernate/StaleStateException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
* does not exist.
1212
*
1313
* @author Gavin King
14+
*
15+
* @see jakarta.persistence.OptimisticLockException
1416
*/
1517
public class StaleStateException extends HibernateException {
1618
/**

hibernate-core/src/main/java/org/hibernate/dialect/lock/OptimisticEntityLockException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* Represents an error trying to apply an optimistic {@link LockingStrategy} to an entity
99
*
1010
* @author Steve Ebersole
11+
*
12+
* @see jakarta.persistence.OptimisticLockException
1113
*/
1214
public class OptimisticEntityLockException extends LockingStrategyException {
1315
/**

hibernate-core/src/main/java/org/hibernate/dialect/lock/PessimisticEntityLockException.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
* Represents an error trying to apply a pessimistic {@link LockingStrategy} to an entity
1111
*
1212
* @author Steve Ebersole
13+
*
14+
* @see jakarta.persistence.PessimisticLockException
1315
*/
1416
public class PessimisticEntityLockException extends LockingStrategyException {
1517
/**

hibernate-core/src/main/java/org/hibernate/exception/LockTimeoutException.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*
1717
* @see org.hibernate.LockOptions#getTimeOut
1818
* @see org.hibernate.LockOptions#setTimeOut
19+
* @see jakarta.persistence.LockTimeoutException
1920
*/
2021
public class LockTimeoutException extends LockAcquisitionException {
2122
public LockTimeoutException(String string, SQLException root) {

0 commit comments

Comments
 (0)