package pl.dmcs.springbootjsp_iwa.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import pl.dmcs.springbootjsp_iwa.model.Student;

import java.util.List;

@Repository
public interface StudentRepository extends JpaRepository<Student,Long>{
    Student findById(long id);

    /*
    // Commented out due to simplify http requests sent from angular app
    @Query(value = "SELECT s FROM Student s INNER JOIN s.teamList t ON t.id = 151")
    List<Student> findteamname();,,666666666666666
*/
}

