if you have this error that mean you are using your Repository interface in the place of you using and instance of it ,
Exemple :

if you have an interface PersonnelRepository and you want to use the function getOne(). if you do like that PersonnelRepository.getOne(id) you will have the error Cannot make a static reference to the non-static method !!

Solution :

PersonnelRepository persoRepository;

	public void updateDisponiblite(Long id) {
		Personnel p = persoRepository.getOne(id);
	       //some code...

Laisser un commentaire