diff options
| author | realtradam <[email protected]> | 2024-07-23 20:16:26 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-07-23 20:16:26 -0400 |
| commit | 56c59e3b98fe554c4e1484e208e4be5c30f09a04 (patch) | |
| tree | 7f30db6e58f8f4376b4152d51140b6dd5c41cda4 /src/main/java/com/blog/web/models/Article.java | |
| parent | 5e2eab6f32bc76918aa17791b688d1df27d6ddfc (diff) | |
| download | spring-blog-56c59e3b98fe554c4e1484e208e4be5c30f09a04.tar.gz spring-blog-56c59e3b98fe554c4e1484e208e4be5c30f09a04.zip | |
convert all articles endpoint to json
Diffstat (limited to 'src/main/java/com/blog/web/models/Article.java')
| -rw-r--r-- | src/main/java/com/blog/web/models/Article.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/blog/web/models/Article.java b/src/main/java/com/blog/web/models/Article.java index ed4ac1c..b54907a 100644 --- a/src/main/java/com/blog/web/models/Article.java +++ b/src/main/java/com/blog/web/models/Article.java @@ -11,7 +11,7 @@ import java.time.LocalDateTime; public class Article { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) - private Long id; + private long id; private String title; private String photoUrl; private String content; @@ -23,7 +23,7 @@ public class Article { @JoinColumn(name = "created_by", nullable = false) private UserEntity createdBy; - public Article(Long id, String title, String photoUrl, String content, UserEntity createdBy, LocalDateTime createdOn, LocalDateTime updatedOn) { + public Article(long id, String title, String photoUrl, String content, UserEntity createdBy, LocalDateTime createdOn, LocalDateTime updatedOn) { this.id = id; this.title = title; this.photoUrl = photoUrl; @@ -46,7 +46,7 @@ public class Article { this.updatedOn = articleDto.getUpdatedOn(); } - public Long getId() { + public long getId() { return id; } |
