You would have to separate nested fields with underscore:
public List<Student> findByStudent_Grades_ClassName(final String className);
Note, that you still have to start field names with uppercase.
You would have to separate nested fields with underscore:
public List<Student> findByStudent_Grades_ClassName(final String className);
Note, that you still have to start field names with uppercase.