Add GameType Entity, Service and Repository. Test add GameType done.

This commit is contained in:
Olivier PARPAILLON
2025-07-09 11:15:17 +02:00
parent 76736405a3
commit eac38d9f4b
5 changed files with 69 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
package fr.eni.demo.bll;
import fr.eni.demo.bo.GameType;
import fr.eni.demo.dal.GameTypeRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class GameTypeService {
@Autowired
private GameTypeRepository gameTypeRepository;
public void add(GameType gameType) {
gameTypeRepository.save(gameType);
}
}