package es.uv.saic.domain;


import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


@Repository
public interface RolRepository extends JpaRepository<Rol, Integer> {

	@Query(value=("SELECT * FROM rols WHERE id_rol NOT IN (1) ORDER BY descripcio_cas"), nativeQuery=true)
	List<Rol> findAssignables();

}
