package com.lanyuanxiaoyao.bookstore.repository;

import com.lanyuanxiaoyao.bookstore.entity.Book;
import com.lanyuanxiaoyao.service.template.repository.SimpleRepository;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface BookRepository extends SimpleRepository<Book> {
  @Query("select distinct book.tags from Book book")
  List<String> findDistinctTags();
}

