add Stock Entity, Repositoy and Service

This commit is contained in:
Olivier PARPAILLON
2025-07-09 10:54:45 +02:00
parent 36b6313335
commit 76736405a3
4 changed files with 61 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
package fr.eni.demo.bll;
import fr.eni.demo.bo.Stock;
import fr.eni.demo.dal.StockRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class StockService {
@Autowired
private StockRepository stockRepository;
public void add(Stock stock) {
stockRepository.save(stock);
}
}