Created Appointment creation flow.
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
package net.gepafin.tendermanagement.repositories;
|
||||
|
||||
import net.gepafin.tendermanagement.entities.HubEntity;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.Query;
|
||||
import org.springframework.data.repository.query.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface HubRepository extends JpaRepository<HubEntity, Long> {
|
||||
|
||||
Optional<HubEntity> findByUniqueUuid(String hubUuid);
|
||||
|
||||
Optional<HubEntity> findByUniqueUuid(String hubUuid);
|
||||
|
||||
@Query("SELECT h FROM HubEntity h WHERE h.id = :hubId")
|
||||
HubEntity findByHubId(@Param("hubId") Long hubId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user