source: phonelux-backend/src/main/java/finki/it/phoneluxbackend/repositories/PhoneRepository.java

Last change on this file was ffd50db, checked in by Marko <Marko@…>, 2 years ago

Added few methods in PhoneOffer service

  • Property mode set to 100644
File size: 372 bytes
Line 
1package finki.it.phoneluxbackend.repositories;
2
3import finki.it.phoneluxbackend.entities.Phone;
4import org.springframework.data.jpa.repository.JpaRepository;
5import org.springframework.stereotype.Repository;
6
7import java.util.Optional;
8
9@Repository
10public interface PhoneRepository extends JpaRepository<Phone,Long> {
11 Optional<Phone> findPhoneByModel(String model);
12}
Note: See TracBrowser for help on using the repository browser.