package at.ac.tuwien.inso.repository;

import org.springframework.data.repository.CrudRepository;

import at.ac.tuwien.inso.entity.Grade;

public interface GradeRepository extends CrudRepository<Grade, Long> {
}

package at.ac.tuwien.inso.repository;

import org.springframework.data.repository.CrudRepository;

import java.util.List;

import at.ac.tuwien.inso.entity.Grade;

public interface GradeRepository extends CrudRepository<Grade, Long> {

    List<Grade> findByStudentAccountId(Long id);
}

Add method to find grades by student account id