removing model mapper
This commit is contained in:
1
pom.xml
1
pom.xml
@@ -31,7 +31,6 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.flywaydb</groupId>
|
||||
<artifactId>flyway-core</artifactId>
|
||||
|
||||
@@ -38,5 +38,4 @@ public class PostEntity {
|
||||
@Column(name = "creation_time", nullable = false)
|
||||
@CreationTimestamp
|
||||
private ZonedDateTime creationTime;
|
||||
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import dev.enblng.api.entities.CommentEntity;
|
||||
import dev.enblng.api.mappers.CommentMapper;
|
||||
import dev.enblng.api.repositories.CommentRepository;
|
||||
import dev.enblng.api.services.CommentService;
|
||||
import org.modelmapper.ModelMapper;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -22,7 +21,6 @@ public class CommentServiceImpl implements CommentService {
|
||||
private final CommentMapper commentMapper;
|
||||
|
||||
public CommentServiceImpl(
|
||||
final ModelMapper modelMapper,
|
||||
final CommentRepository commentRepository,
|
||||
final CommentMapper commentMapper
|
||||
) {
|
||||
|
||||
@@ -6,7 +6,6 @@ import dev.enblng.api.mappers.PostMapper;
|
||||
import dev.enblng.api.repositories.PostRepository;
|
||||
import dev.enblng.api.services.PostService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.modelmapper.ModelMapper;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -25,9 +24,9 @@ public class PostServiceImpl implements PostService {
|
||||
private final PostMapper postMapper;
|
||||
|
||||
@Autowired
|
||||
public PostServiceImpl(final ModelMapper modelMapper,
|
||||
final PostRepository postRepository,
|
||||
final PostMapper postMapper) {
|
||||
public PostServiceImpl(
|
||||
final PostRepository postRepository,
|
||||
final PostMapper postMapper) {
|
||||
this.postRepository = postRepository;
|
||||
this.postMapper = postMapper;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user