source: src/main/java/com/example/fooddeliverysystem/repository/UserRepository.java

Last change on this file was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 20 months ago

code added, trial 2

  • Property mode set to 100644
File size: 378 bytes
Line 
1package com.example.fooddeliverysystem.repository;
2
3import com.example.fooddeliverysystem.model.User;
4import org.springframework.data.jpa.repository.JpaRepository;
5import org.springframework.stereotype.Repository;
6
7import java.util.Optional;
8
9@Repository
10public interface UserRepository extends JpaRepository<User, Long> {
11
12 Optional<User> findByUsername(String username);
13}
Note: See TracBrowser for help on using the repository browser.