Amélioration de l'ORM

This commit is contained in:
2014-12-26 00:24:32 +01:00
parent 526e724db5
commit 9ec2dfb95b
2 changed files with 29 additions and 4 deletions

View File

@@ -36,8 +36,10 @@ public class DBConnection {
}
}
public Connection getConnection()
public Connection getConnection() throws SQLException
{
if (!conn.isValid(1))
reconnectIfNecessary();
return conn;
}