Article Repository

This commit is contained in:
mepiphana2023
2024-04-23 10:41:06 +02:00
parent 39efe3212f
commit fd22ea2db0
7 changed files with 33 additions and 4 deletions

View File

@@ -56,6 +56,13 @@ public class ArticleRepositoryImpl implements ArticleRepository {
return null;
}
@Override
public List<Article> findArticleByTitle(String title) {
String sql = "SELECT * FROM ARTICLES_VENDUS WHERE nom_article LIKE '?'";
List<Article> articles = jdbcTemplate.query(sql, new ArticleRowMapper(), title);
return articles;
}
@Override
public void saveArticle(Article article) {