lrj
2 天以前 c61d4fe27c97d2ecc907756aa571a4ef14a7b9b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.rongyichuang.judge.repository;
 
import com.rongyichuang.judge.entity.Tag;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
 
import java.util.List;
 
@Repository
public interface TagRepository extends JpaRepository<Tag, Long> {
 
    List<Tag> findByCategory(String category);
 
    List<Tag> findByIdIn(List<Long> ids);
}