package es.uv.saic.domain;

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

@Repository
public interface WikiRepository  extends JpaRepository<Wiki, Integer> {
	@Query(value="SELECT * FROM wiki WHERE categoria = ?1 LIMIT 1;", nativeQuery=true)
	Wiki findByCategoria(String categoria); 
}
