Commit 070e0053 by Oscar Gonzalez

se agrega BirthdayRepository

parent bb1b1108
package com.roshka.repositorio;
import com.roshka.modelo.Birthday;
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 BirthdayRepository extends JpaRepository<Birthday,Long> {
public Page<Birthday> findByNombreCompletoContainingIgnoreCase(String nombre, Pageable pageable);
public boolean existsByNombreCompletoIgnoreCase(String nombre);
@Query(value = "SELECT * FROM cumpleanos", nativeQuery = true)
public Page<Birthday> findAllBirthday(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