Amélioration de l'ORM
This commit is contained in:
@@ -36,8 +36,10 @@ public class DBConnection {
|
||||
}
|
||||
}
|
||||
|
||||
public Connection getConnection()
|
||||
public Connection getConnection() throws SQLException
|
||||
{
|
||||
if (!conn.isValid(1))
|
||||
reconnectIfNecessary();
|
||||
return conn;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user