廖井涛
2025-06-11 42154214c5698326710edf336b3148830b646bb2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.northglass.repository;
 
import java.util.List;
 
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
 
import com.northglass.entity.Fragments;
 
public interface FragmentsDao extends JpaRepository<Fragments, Long>{
 
    @Query("select t from Fragments t ")
    public List<Fragments> findfall();
    
    @Query("select t from Fragments t where t.id=?1 ")
    public Fragments findById(long id);
}