Changeset 6479fe1 for Prototype Application
- Timestamp:
- 02/05/23 20:58:13 (21 months ago)
- Branches:
- main
- Children:
- 55c0119
- Parents:
- 738b31a
- Location:
- Prototype Application/Paw5/src/main/java/finki/paw5
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/service/PostService.java
r738b31a r6479fe1 1 1 package finki.paw5.service; 2 2 3 import finki.paw5.model. Post;3 import finki.paw5.model.entities.Post; 4 4 import finki.paw5.model.enumerations.AgeGroup; 5 5 import finki.paw5.model.enumerations.Gender; … … 8 8 9 9 public interface PostService { 10 Post submit ( String pet_name, Gender gender, AgeGroup ageGroup, Size size, Species species, String breed, String urlimage); 10 11 Post submit (String pet_name, Gender gender, AgeGroup ageGroup, Size size, Species species, String breed, String urlimage); 12 11 13 } -
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PostServiceImpl.java
r738b31a r6479fe1 1 1 package finki.paw5.service.implementation; 2 2 3 import finki.paw5.model. Post;3 import finki.paw5.model.entities.Post; 4 4 import finki.paw5.model.enumerations.AgeGroup; 5 5 import finki.paw5.model.enumerations.Gender; 6 6 import finki.paw5.model.enumerations.Size; 7 7 import finki.paw5.model.enumerations.Species; 8 import finki.paw5.repository.PostRepository; 8 9 import finki.paw5.service.PostService; 10 import org.springframework.stereotype.Service; 9 11 12 @Service 10 13 public class PostServiceImpl implements PostService { 11 private final finki.paw5.repository.PostRepository PostRepository;12 14 13 public PostServiceImpl(finki.paw5.repository.PostRepository PostRepository){ 14 this.PostRepository = PostRepository; 15 private final PostRepository postRepository; 16 17 public PostServiceImpl(PostRepository PostRepository){ 18 this.postRepository = PostRepository; 15 19 } 16 17 20 18 21 @Override 19 22 public Post submit(String name, Gender gender, AgeGroup ageGroup, Size size, Species species, String breed, String urlimage) { 20 Post post = new Post(name, gender, ageGroup, size, species, breed, urlimage);23 //Post post = new Post(name, gender, ageGroup, size, species, breed, urlimage); 21 24 return null; 22 25 } 26 23 27 } -
Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/PostController.java
r738b31a r6479fe1 17 17 private final PostService postService; 18 18 19 public PostController(PostService postService) {19 public PostController(PostService postService) { 20 20 this.postService = postService; 21 21 }
Note:
See TracChangeset
for help on using the changeset viewer.