From 3b5b8d20137414deb7ce92660f4887dab3c1045e Mon Sep 17 00:00:00 2001 From: SeungHoon Han <101882530+sleepyhoon@users.noreply.github.com> Date: Sun, 28 Jul 2024 00:40:53 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20spotlessApply=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=20(#30)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dive/domain/article/controller/ArticleController.java | 3 +-- .../com/goldbalance/dive/domain/article/domain/Answer.java | 3 ++- .../com/goldbalance/dive/domain/article/domain/Article.java | 5 ++--- .../dive/domain/article/domain/ArticleContent.java | 4 ++-- .../com/goldbalance/dive/domain/article/domain/Quiz.java | 5 ++--- .../dive/domain/article/repository/ArticleRepository.java | 3 +-- .../dive/domain/article/service/ArticleService.java | 3 +-- 7 files changed, 11 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/goldbalance/dive/domain/article/controller/ArticleController.java b/src/main/java/com/goldbalance/dive/domain/article/controller/ArticleController.java index f5bdcd6..e85b21a 100644 --- a/src/main/java/com/goldbalance/dive/domain/article/controller/ArticleController.java +++ b/src/main/java/com/goldbalance/dive/domain/article/controller/ArticleController.java @@ -1,4 +1,3 @@ package com.goldbalance.dive.domain.article.controller; -public class ArticleController { -} +public class ArticleController {} diff --git a/src/main/java/com/goldbalance/dive/domain/article/domain/Answer.java b/src/main/java/com/goldbalance/dive/domain/article/domain/Answer.java index ae84f78..124df7f 100644 --- a/src/main/java/com/goldbalance/dive/domain/article/domain/Answer.java +++ b/src/main/java/com/goldbalance/dive/domain/article/domain/Answer.java @@ -7,7 +7,8 @@ @Getter @RequiredArgsConstructor public class Answer { - @Id @GeneratedValue(strategy = GenerationType.IDENTITY) + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "answer_id") private Long id; diff --git a/src/main/java/com/goldbalance/dive/domain/article/domain/Article.java b/src/main/java/com/goldbalance/dive/domain/article/domain/Article.java index b99f463..f828dcd 100644 --- a/src/main/java/com/goldbalance/dive/domain/article/domain/Article.java +++ b/src/main/java/com/goldbalance/dive/domain/article/domain/Article.java @@ -3,13 +3,12 @@ import jakarta.persistence.*; import lombok.*; -import java.util.List; - @Entity @Getter @RequiredArgsConstructor public class Article { - @Id @GeneratedValue + @Id + @GeneratedValue @Column(name = "article_id") private Long id; diff --git a/src/main/java/com/goldbalance/dive/domain/article/domain/ArticleContent.java b/src/main/java/com/goldbalance/dive/domain/article/domain/ArticleContent.java index 5ae3905..ad3b060 100644 --- a/src/main/java/com/goldbalance/dive/domain/article/domain/ArticleContent.java +++ b/src/main/java/com/goldbalance/dive/domain/article/domain/ArticleContent.java @@ -2,7 +2,6 @@ import jakarta.persistence.*; import lombok.*; -import org.springframework.data.convert.ReadingConverter; /** *
package name : com.goldbalance.dive.domain.article.domain @@ -29,7 +28,8 @@ @Getter @RequiredArgsConstructor public class ArticleContent { - @Id @GeneratedValue + @Id + @GeneratedValue private Long id; @Column(name = "subtitle") diff --git a/src/main/java/com/goldbalance/dive/domain/article/domain/Quiz.java b/src/main/java/com/goldbalance/dive/domain/article/domain/Quiz.java index f3f08e8..ee8f05c 100644 --- a/src/main/java/com/goldbalance/dive/domain/article/domain/Quiz.java +++ b/src/main/java/com/goldbalance/dive/domain/article/domain/Quiz.java @@ -3,13 +3,12 @@ import jakarta.persistence.*; import lombok.*; -import java.util.List; - @Entity @Getter @RequiredArgsConstructor public class Quiz { - @Id @GeneratedValue + @Id + @GeneratedValue @Column(name = "quiz_id") private Long id; diff --git a/src/main/java/com/goldbalance/dive/domain/article/repository/ArticleRepository.java b/src/main/java/com/goldbalance/dive/domain/article/repository/ArticleRepository.java index cfe79f0..453f8ff 100644 --- a/src/main/java/com/goldbalance/dive/domain/article/repository/ArticleRepository.java +++ b/src/main/java/com/goldbalance/dive/domain/article/repository/ArticleRepository.java @@ -3,5 +3,4 @@ import com.goldbalance.dive.domain.article.domain.Article; import org.springframework.data.jpa.repository.JpaRepository; -public interface ArticleRepository extends JpaRepository { -} +public interface ArticleRepository extends JpaRepository {} diff --git a/src/main/java/com/goldbalance/dive/domain/article/service/ArticleService.java b/src/main/java/com/goldbalance/dive/domain/article/service/ArticleService.java index 16e5e9a..d49dfe7 100644 --- a/src/main/java/com/goldbalance/dive/domain/article/service/ArticleService.java +++ b/src/main/java/com/goldbalance/dive/domain/article/service/ArticleService.java @@ -1,4 +1,3 @@ package com.goldbalance.dive.domain.article.service; -public class ArticleService { -} +public class ArticleService {}