Skip to content

Commit e700035

Browse files
author
Maksim Litvinov
committed
fix dto for create post
1 parent 5779b0a commit e700035

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/main/java/io/hexlet/blog/dto/PostCreateDTO.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
@Setter
88
@Getter
99
public class PostCreateDTO {
10-
@NotNull
11-
private Long authorId;
1210

1311
@NotNull
1412
private String slug;

src/main/java/io/hexlet/blog/mapper/PostMapper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
unmappedTargetPolicy = ReportingPolicy.IGNORE
2020
)
2121
public abstract class PostMapper {
22-
@Mapping(target = "author", source = "authorId")
2322
public abstract Post map(PostCreateDTO dto);
2423

2524
@Mapping(source = "author.id", target = "authorId")

0 commit comments

Comments
 (0)