Interface FridgeRepository

All Superinterfaces:
org.springframework.data.repository.CrudRepository<Fridge,Long>, org.springframework.data.jpa.repository.JpaRepository<Fridge,Long>, org.springframework.data.repository.ListCrudRepository<Fridge,Long>, org.springframework.data.repository.ListPagingAndSortingRepository<Fridge,Long>, org.springframework.data.repository.PagingAndSortingRepository<Fridge,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Fridge>, org.springframework.data.repository.Repository<Fridge,Long>

public interface FridgeRepository extends org.springframework.data.jpa.repository.JpaRepository<Fridge,Long>
Repository interface for the Fridge entity
Version:
1.1
Author:
Anders, Birk
  • Method Summary

    Modifier and Type
    Method
    Description
    findByGroupGroupId(long groupId)
    Gets the fridge of a group

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAll, findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByGroupGroupId

      Optional<Fridge> findByGroupGroupId(long groupId)
      Gets the fridge of a group
      Parameters:
      groupId - the id of the group
      Returns:
      an Optional containing the fridge of the group if it exists