Package de.dlr.proseo.model.dao
Interface FacilityRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<ProcessingFacility,,Long> org.springframework.data.jpa.repository.JpaRepository<ProcessingFacility,,Long> org.springframework.data.repository.ListCrudRepository<ProcessingFacility,,Long> org.springframework.data.repository.ListPagingAndSortingRepository<ProcessingFacility,,Long> org.springframework.data.repository.PagingAndSortingRepository<ProcessingFacility,,Long> org.springframework.data.repository.query.QueryByExampleExecutor<ProcessingFacility>,org.springframework.data.repository.Repository<ProcessingFacility,Long>
public interface FacilityRepository
extends org.springframework.data.jpa.repository.JpaRepository<ProcessingFacility,Long>
Data Access Object for the ProcessingFacility class
- Author:
- Dr. Thomas Bassler
-
Method Summary
Modifier and TypeMethodDescriptionfindByName(String facilityName) Get the processing facility with the given nameMethods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByName
@Query("select pf from ProcessingFacility pf where UPPER(pf.name) = UPPER(?1)") ProcessingFacility findByName(String facilityName) Get the processing facility with the given name- Parameters:
facilityName- the name of the processing facility- Returns:
- the unique processing facility identified by the name
-