source: src/main/java/com/example/repository/UserRepository.java@ a51a591

Last change on this file since a51a591 was a51a591, checked in by colovik <j.colovik@…>, 14 months ago

final

  • Property mode set to 100644
File size: 420 bytes
Line 
1package com.example.repository;
2
3import com.example.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,Integer> {
11 Optional<User> findByUsernameAndPassword(String username, String password);
12 Optional<User> findByUsername(String username);
13}
Note: See TracBrowser for help on using the repository browser.