Created
March 17, 2018 16:59
-
-
Save Gwoks/db16f2fc5ad99606acfea43f2f2fb2da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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