package de.oaa.xxx.hashtag;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

public interface HashtagRepository extends JpaRepository<HashtagEntity, UUID> {

    Optional<HashtagEntity> findByName(String name);

    List<HashtagEntity> findByNameStartingWithOrderByNameAsc(String prefix, Pageable pageable);
}
