Skip to content

Instantly share code, notes, and snippets.

@Gwoks
Created March 17, 2018 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gwoks/db16f2fc5ad99606acfea43f2f2fb2da to your computer and use it in GitHub Desktop.
Save Gwoks/db16f2fc5ad99606acfea43f2f2fb2da to your computer and use it in GitHub Desktop.
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