Schnittstelle SpacecraftRepository

Alle Superschnittstellen:
org.springframework.data.repository.CrudRepository<Spacecraft,Long>, org.springframework.data.jpa.repository.JpaRepository<Spacecraft,Long>, org.springframework.data.repository.PagingAndSortingRepository<Spacecraft,Long>, org.springframework.data.repository.query.QueryByExampleExecutor<Spacecraft>, org.springframework.data.repository.Repository<Spacecraft,Long>

@Repository public interface SpacecraftRepository extends org.springframework.data.jpa.repository.JpaRepository<Spacecraft,Long>
Data Access Object for the Spacecraft class
Autor:
Dr. Thomas Bassler
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    findByMissionAndCode(String missionCode, String spacecraftCode)
    Get the spacecraft with the given mission and code

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.CrudRepository

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

    Von Schnittstelle geerbte Methoden org.springframework.data.jpa.repository.JpaRepository

    deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.PagingAndSortingRepository

    findAll

    Von Schnittstelle geerbte Methoden org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findOne
  • Methodendetails

    • findByMissionAndCode

      @Query("select sc from Spacecraft sc where sc.mission.code = ?1 and sc.code = ?2") Spacecraft findByMissionAndCode(String missionCode, String spacecraftCode)
      Get the spacecraft with the given mission and code
      Parameter:
      missionCode - the mission code
      spacecraftCode - the spacecraft code
      Gibt zurück:
      the unique spacecraft identified by the code