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

Last change on this file was eb226b2, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Fixing errors

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