source: src/main/java/com/example/villadihovo/repository/users/UserRepository.java

Last change on this file was f7c05a1, checked in by Elena Shulevska <elena.shulevska@…>, 15 months ago

initial commit of the source code on origin

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