[hibernate-commits] Hibernate SVN: r18854 - core/trunk/core/src/main/java/org/hibernate.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Feb 22 20:12:57 EST 2010


Author: smarlow at 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);
 	}
 
 }



More information about the hibernate-commits mailing list