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