1 2 3 4 5 6 7 8 9 10 11 12 13
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); }