RightRepository.java 324 Bytes
package fr.plil.sio.persistence.jpa;

import fr.plil.sio.persistence.api.Right;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;

public interface RightRepository  extends JpaRepository<Right, Long> {
    
    List<Right> findByName(String name);
    
    Right findById(Long id);
    
}