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 NoticiaRepository extends JpaRepository<Noticia, Long> {
	
	@Query("SELECT i FROM Noticia i WHERE i.visible = true")
	List<Noticia> findVisibles();
	
}

