Monday, 22 February
2010
Mon, 22 Feb
'10
7:12 p.m.
Author: smarlow(a)redhat.com
Date: 2010-02-22 20:12:57 -0500 (Mon, 22 Feb 2010)
New Revision: 18854
Modified:
core/trunk/core/src/main/java/org/hibernate/QueryTimeoutException.java
Log:
HHH-4662 Implement javax.persistence.query.timeout
Modified: core/trunk/core/src/main/java/org/hibernate/QueryTimeoutException.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/QueryTimeoutException.java 2010-02-23
01:06:16 UTC (rev 18853)
+++ core/trunk/core/src/main/java/org/hibernate/QueryTimeoutException.java 2010-02-23
01:12:57 UTC (rev 18854)
@@ -35,26 +35,12 @@
public class QueryTimeoutException extends JDBCException {
- Object entity;
+ public QueryTimeoutException( String s, JDBCException je, String sql ) {
+ super(s, je.getSQLException(), sql);
+ }
-
- public QueryTimeoutException( String s, JDBCException je, Object entity ) {
- super(s, je.getSQLException());
- this.entity = entity;
- }
-
- public QueryTimeoutException( String s, SQLException se, Object entity ) {
- super(s, se);
- this.entity = entity;
- }
-
public QueryTimeoutException( String s, SQLException se, String sql ) {
- super(s, se, sql);
- this.entity = null;
- }
-
- public Object getEntity() {
- return entity;
+ super(s, se, sql);
}
}
Show replies by date