Interface VehicleRepository

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

@Repository public interface VehicleRepository extends org.springframework.data.jpa.repository.JpaRepository<Vehicle,UUID>
VehicleRepository.java - Repository interface for Vehicle entity operations.
Author:
Kristian Popov
  • Method Summary

    Modifier and Type
    Method
    Description
    Find vehicles by owner.

    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

    • findByOwner

      List<Vehicle> findByOwner(User user)
      Find vehicles by owner.
      Parameters:
      user - - user
      Returns:
      vehicles