Commit d2fd2c1d by Oscar Gonzalez

se agrega BeneficioRepository

parent e102a310
package com.roshka.repositorio;
import com.roshka.modelo.Beneficio;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
public interface BeneficioRepository extends JpaRepository<Beneficio,Long> {
public Page<Beneficio> findByTituloContainingIgnoreCase(String nombre, Pageable pageable);
public boolean existsByTituloIgnoreCase(String nombre);
@Query(value = "SELECT * FROM beneficio", nativeQuery = true)
public Page<Beneficio> findAllBeneficio(Pageable pageable);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment