source:
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PostServiceImplementation.java@
468b7b6
Last change on this file since 468b7b6 was 468b7b6, checked in by , 17 months ago | |
---|---|
|
|
File size: 558 bytes |
Rev | Line | |
---|---|---|
[738b31a] | 1 | package finki.paw5.service.implementation; |
2 | ||
[6479fe1] | 3 | import finki.paw5.model.entities.Post; |
4 | import finki.paw5.repository.PostRepository; | |
[738b31a] | 5 | import finki.paw5.service.PostService; |
[6479fe1] | 6 | import org.springframework.stereotype.Service; |
[738b31a] | 7 | |
[6479fe1] | 8 | @Service |
[55c0119] | 9 | public class PostServiceImplementation implements PostService { |
[738b31a] | 10 | |
[6479fe1] | 11 | private final PostRepository postRepository; |
[738b31a] | 12 | |
[55c0119] | 13 | public PostServiceImplementation(PostRepository PostRepository){ |
[6479fe1] | 14 | this.postRepository = PostRepository; |
15 | } | |
[738b31a] | 16 | |
17 | @Override | |
[468b7b6] | 18 | public void save(Post post) { |
19 | this.postRepository.save(post); | |
[738b31a] | 20 | } |
[6479fe1] | 21 | |
[738b31a] | 22 | } |
Note:
See TracBrowser
for help on using the repository browser.