Skip to content

Instantly share code, notes, and snippets.

@kasramp
Created June 9, 2020 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kasramp/bc852e994028d1411babeb33fb2e37dd to your computer and use it in GitHub Desktop.
Save kasramp/bc852e994028d1411babeb33fb2e37dd to your computer and use it in GitHub Desktop.
package com.madadipouya.quarkus.example.service;
import com.madadipouya.quarkus.example.entity.User;
import com.madadipouya.quarkus.example.exception.UserNotFoundException;
import java.util.List;
public interface UserService {
User getUserById(long id) throws UserNotFoundException;
List<User> getAllUsers();
User updateUser(long id, User user) throws UserNotFoundException;
User saveUser(User user);
void deleteUser(long id) throws UserNotFoundException;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment