source:
src/main/java/com/example/repository/LocationRepository.java
Last change on this file was a51a591, checked in by , 14 months ago | |
---|---|
|
|
File size: 396 bytes |
Rev | Line | |
---|---|---|
[a51a591] | 1 | package com.example.repository; |
2 | ||
3 | import com.example.model.Location; | |
4 | import org.springframework.data.jpa.repository.JpaRepository; | |
5 | import org.springframework.stereotype.Repository; | |
6 | ||
7 | import java.util.List; | |
8 | ||
9 | @Repository | |
10 | public interface LocationRepository extends JpaRepository<Location, String> { | |
11 | Location findByAddress(String address); | |
12 | ||
13 | List<Location> findAllByAddress (String address); | |
14 | } |
Note:
See TracBrowser
for help on using the repository browser.