package corp.siendev.auth.service.repository;

import corp.siendev.auth.service.entity.User;

import java.util.List;

/**
 * User repository interface.
 *
 * @author Golubnichenko_Yuriy
 */
public interface UserRepository {

    void create(User user);
    void update(User user);
    void delete(User user);
    void save();

    User getUser(int userId);
    List<User> getAllUsers();
    User findById(int userId);

}

@@ -90,30 +90,68 @@
 er;%0A
-%0A
 import 
-java.util.List
+org.springframework.data.jpa.repository.JpaRepository
 ;%0A%0A/
@@ -257,203 +257,46 @@
 ory 
-%7B%0A%0A    void create(User user);%0A    void update(User user);%0A    void delete(User user);%0A    void save();%0A%0A    User getUser(int userId);%0A    List%3CUser%3E getAllUsers();%0A    User findById(int userId);
+extends JpaRepository%3CUser, Integer%3E %7B
 %0A%0A%7D%0A

update UserRepository