Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
package com.example.springbook.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.example.springbook.model.Buku;
@Repository
public interface BukuRepository extends JpaRepository<Buku, Long> {
List<Buku> findByStatusPeminjaman (int statusPeminjaman);
List<Buku> findByTitleBook(String titleBook);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.