Example usage for org.springframework.data.jpa.repository JpaRepository interface-usage

List of usage examples for org.springframework.data.jpa.repository JpaRepository interface-usage

Introduction

In this page you can find the example usage for org.springframework.data.jpa.repository JpaRepository interface-usage.

Usage

From source file programacaovi.todo.ItemRepository.java

/**
 *
 * @author Rodrigo
 */
public interface ItemRepository extends JpaRepository<Item, Integer> {

From source file com.example.posting.BlogPostRepository.java

/**
 *
 * @author dilyan
 */
public interface BlogPostRepository extends JpaRepository<BlogPost, Long> {

From source file com.example.security.UserRepository.java

/**
 *
 * @author dilyan
 */
public interface UserRepository extends JpaRepository<User, Long> {
    User findOneByUsername(String username);

From source file business.models.ExcerptEntryRepository.java

public interface ExcerptEntryRepository extends JpaRepository<ExcerptEntry, Long> {

    Integer countByExcerptListId(Long excerptListId);

    Integer countBySelectedTrueAndExcerptListId(Long excerptListId);

From source file repositories.RolesRepository.java

/**
 *
 * @author sergio
 */
public interface RolesRepository extends JpaRepository<Role, Long> {
    Role findByName(String name);

From source file stubs.Table1Repository.java

/**
 *
 * @author mekko
 */
public interface Table1Repository extends JpaRepository<Table1, Integer> {

From source file repositories.FileImageRepository.java

/**
 *
 * @author sergio
 */
public interface FileImageRepository extends JpaRepository<FileImage, Long> {
    FileImage findByPostId(Long id);

From source file wad.repository.TagaysRepository.java

/**
 *
 * @author anttikoivurova
 */
public interface TagaysRepository extends JpaRepository<Tagays, Long> {

From source file wad.repository.LocationRepository.java

/**
 *
 * @author Pete
 */
public interface LocationRepository extends JpaRepository<Location, Long> {

From source file business.models.RoleRepository.java

public interface RoleRepository extends JpaRepository<Role, Long> {

    Role findByName(String name);

}