source:
phonelux-backend/src/main/java/finki/it/phoneluxbackend/repositories/PhoneRepository.java
Last change on this file was ffd50db, checked in by , 2 years ago | |
---|---|
|
|
File size: 372 bytes |
Line | |
---|---|
1 | package finki.it.phoneluxbackend.repositories; |
2 | |
3 | import finki.it.phoneluxbackend.entities.Phone; |
4 | import org.springframework.data.jpa.repository.JpaRepository; |
5 | import org.springframework.stereotype.Repository; |
6 | |
7 | import java.util.Optional; |
8 | |
9 | @Repository |
10 | public interface PhoneRepository extends JpaRepository<Phone,Long> { |
11 | Optional<Phone> findPhoneByModel(String model); |
12 | } |
Note:
See TracBrowser
for help on using the repository browser.