blob: 387835e9834c8f0c250b330814a780a14cbb412a (
plain) (
tree)
|
|
package com.terminaldweller.doc;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
/** The interface of the doc class for the data store. */
@Repository
public interface DocRepository extends JpaRepository<Doc, Long> {
@Query("SELECT d FROM Doc d WHERE d.name = ?1")
Optional<Doc> findDocByName(String name);
}
|