Last active
June 23, 2018 09:37
-
-
Save Ikhiloya/f32e7d6106273daf453429e65c6d19df to your computer and use it in GitHub Desktop.
service class for spring-boot-jpa-oracle tutorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Service | |
public class UserService { | |
@Autowired | |
UserDao userDao; | |
public List<User> getAllUsers() { | |
return this.userDao.findAll(); | |
} | |
public User addUser(User user) { | |
return this.userDao.save(user); | |
} | |
//other methods omitted for brevity | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment