application.repositories.LicenceRepository.java Source code

Java tutorial

Introduction

Here is the source code for application.repositories.LicenceRepository.java

Source

package application.repositories;

import application.models.License;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.swing.*;
import java.util.List;

@Repository
public interface LicenceRepository extends JpaRepository<License, Long> {
    List<License> findAllByResourceCourseId(Long id);
}