Ignore:
Timestamp:
02/05/23 20:58:13 (21 months ago)
Author:
Filip Chorbeski <86695898+FilipChorbeski@…>
Branches:
main
Children:
55c0119
Parents:
738b31a
Message:

fix errors

Co-Authored-By: SazdovaEkaterina <74919977+SazdovaEkaterina@…>

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  
    11package finki.paw5.service;
    22
    3 import finki.paw5.model.Post;
     3import finki.paw5.model.entities.Post;
    44import finki.paw5.model.enumerations.AgeGroup;
    55import finki.paw5.model.enumerations.Gender;
     
    88
    99public 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
    1113}
  • Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/PostServiceImpl.java

    r738b31a r6479fe1  
    11package finki.paw5.service.implementation;
    22
    3 import finki.paw5.model.Post;
     3import finki.paw5.model.entities.Post;
    44import finki.paw5.model.enumerations.AgeGroup;
    55import finki.paw5.model.enumerations.Gender;
    66import finki.paw5.model.enumerations.Size;
    77import finki.paw5.model.enumerations.Species;
     8import finki.paw5.repository.PostRepository;
    89import finki.paw5.service.PostService;
     10import org.springframework.stereotype.Service;
    911
     12@Service
    1013public class PostServiceImpl implements PostService {
    11     private final finki.paw5.repository.PostRepository PostRepository;
    1214
    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;
    1519    }
    16 
    1720
    1821    @Override
    1922    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);
    2124        return null;
    2225    }
     26
    2327}
  • Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/PostController.java

    r738b31a r6479fe1  
    1717    private final PostService postService;
    1818
    19     public PostController(PostService postService){
     19    public PostController(PostService postService) {
    2020        this.postService = postService;
    2121    }
Note: See TracChangeset for help on using the changeset viewer.