main
Last change
on this file since 3e59177 was 468b7b6, checked in by Filip Chorbeski <86695898+FilipChorbeski@…>, 18 months ago |
create post form (initial version)
successfully communicates with database and adds pet and post (will be worked upon more)
|
-
Property mode
set to
100644
|
File size:
558 bytes
|
Line | |
---|
1 | package finki.paw5.service.implementation;
|
---|
2 |
|
---|
3 | import finki.paw5.model.entities.Post;
|
---|
4 | import finki.paw5.repository.PostRepository;
|
---|
5 | import finki.paw5.service.PostService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | @Service
|
---|
9 | public class PostServiceImplementation implements PostService {
|
---|
10 |
|
---|
11 | private final PostRepository postRepository;
|
---|
12 |
|
---|
13 | public PostServiceImplementation(PostRepository PostRepository){
|
---|
14 | this.postRepository = PostRepository;
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public void save(Post post) {
|
---|
19 | this.postRepository.save(post);
|
---|
20 | }
|
---|
21 |
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.