From c23218388abb68ef1f347367f6a92688dd003e0c Mon Sep 17 00:00:00 2001 From: pricelees Date: Thu, 10 Jul 2025 12:21:17 +0900 Subject: [PATCH] chore: reformat application codes --- .../com/sangdol/demo/DemoApplication.kt | 2 +- .../kotlin/com/sangdol/demo/DemoEntity.kt | 6 +-- src/main/resources/data.sql | 42 +++++++++---------- src/main/resources/schema.sql | 6 +-- 4 files changed, 26 insertions(+), 30 deletions(-) diff --git a/src/main/kotlin/com/sangdol/demo/DemoApplication.kt b/src/main/kotlin/com/sangdol/demo/DemoApplication.kt index 4bd6047..4da31da 100644 --- a/src/main/kotlin/com/sangdol/demo/DemoApplication.kt +++ b/src/main/kotlin/com/sangdol/demo/DemoApplication.kt @@ -7,5 +7,5 @@ import org.springframework.boot.runApplication class DemoApplication fun main(args: Array) { - runApplication(*args) + runApplication(*args) } diff --git a/src/main/kotlin/com/sangdol/demo/DemoEntity.kt b/src/main/kotlin/com/sangdol/demo/DemoEntity.kt index c2cafe1..483f6b3 100644 --- a/src/main/kotlin/com/sangdol/demo/DemoEntity.kt +++ b/src/main/kotlin/com/sangdol/demo/DemoEntity.kt @@ -1,10 +1,6 @@ package com.sangdol.demo -import jakarta.persistence.Entity -import jakarta.persistence.GeneratedValue -import jakarta.persistence.GenerationType -import jakarta.persistence.Id -import jakarta.persistence.Table +import jakarta.persistence.* @Entity @Table(name = "demo") diff --git a/src/main/resources/data.sql b/src/main/resources/data.sql index db4ea29..502c8f7 100644 --- a/src/main/resources/data.sql +++ b/src/main/resources/data.sql @@ -1,21 +1,21 @@ -INSERT INTO demo(name, age) VALUES - ('John Doe', 30), - ('Jane Smith', 25), - ('Alice Johnson', 28), - ('Bob Brown', 35), - ('Charlie White', 22), - ('Diana Green', 40), - ('Ethan Blue', 33), - ('Fiona Black', 29), - ('George Grey', 31), - ('Hannah Yellow', 27), - ('Ian Purple', 38), - ('Julia Orange', 26), - ('Kevin Pink', 34), - ('Laura Cyan', 21), - ('Mike Magenta', 37), - ('Nina Teal', 24), - ('Oscar Maroon', 32), - ('Paula Silver', 39), - ('Quentin Gold', 23), - ('Rachel Bronze', 36); \ No newline at end of file +INSERT INTO demo(name, age) +VALUES ('John Doe', 30), + ('Jane Smith', 25), + ('Alice Johnson', 28), + ('Bob Brown', 35), + ('Charlie White', 22), + ('Diana Green', 40), + ('Ethan Blue', 33), + ('Fiona Black', 29), + ('George Grey', 31), + ('Hannah Yellow', 27), + ('Ian Purple', 38), + ('Julia Orange', 26), + ('Kevin Pink', 34), + ('Laura Cyan', 21), + ('Mike Magenta', 37), + ('Nina Teal', 24), + ('Oscar Maroon', 32), + ('Paula Silver', 39), + ('Quentin Gold', 23), + ('Rachel Bronze', 36); \ No newline at end of file diff --git a/src/main/resources/schema.sql b/src/main/resources/schema.sql index e49db3e..1f691f4 100644 --- a/src/main/resources/schema.sql +++ b/src/main/resources/schema.sql @@ -2,8 +2,8 @@ DROP TABLE IF EXISTS demo; CREATE TABLE demo ( - id BIGINT NOT NULL AUTO_INCREMENT, - name VARCHAR(50) NOT NULL, - age INTEGER NOT NULL, + id BIGINT NOT NULL AUTO_INCREMENT, + name VARCHAR(50) NOT NULL, + age INTEGER NOT NULL, PRIMARY KEY (id) );