public class NouvellesDAO extends DAO<Nouvelle> {
@Override
public Nouvelle find(String id) {
try {
String findById = "SELECT * FROM nouvelles WHERE id = ?";
<BUG>PreparedStatement st = this.connection.prepareStatement(findById,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
</BUG>
st.setString(1, id);
ResultSet result = st.executeQuery();
<BUG>if(result.first()) {
</BUG>
Nouvelle nouvelle = getDataFromResult(result);

public class NouvellesDAO extends DAO<Nouvelle> {
@Override
public Nouvelle find(String id) {
try {
String findById = "SELECT * FROM nouvelles WHERE id = ?";
PreparedStatement st = this.connection.prepareStatement(findById, ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
st.setString(1, id);
ResultSet result = st.executeQuery();
if (result.first()) {
Nouvelle nouvelle = getDataFromResult(result);
