chore: reformat application codes

This commit is contained in:
이상진 2025-07-10 12:21:17 +09:00
parent 7c020072bd
commit c23218388a
4 changed files with 26 additions and 30 deletions

View File

@ -7,5 +7,5 @@ import org.springframework.boot.runApplication
class DemoApplication class DemoApplication
fun main(args: Array<String>) { fun main(args: Array<String>) {
runApplication<DemoApplication>(*args) runApplication<DemoApplication>(*args)
} }

View File

@ -1,10 +1,6 @@
package com.sangdol.demo package com.sangdol.demo
import jakarta.persistence.Entity import jakarta.persistence.*
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.Table
@Entity @Entity
@Table(name = "demo") @Table(name = "demo")

View File

@ -1,21 +1,21 @@
INSERT INTO demo(name, age) VALUES INSERT INTO demo(name, age)
('John Doe', 30), VALUES ('John Doe', 30),
('Jane Smith', 25), ('Jane Smith', 25),
('Alice Johnson', 28), ('Alice Johnson', 28),
('Bob Brown', 35), ('Bob Brown', 35),
('Charlie White', 22), ('Charlie White', 22),
('Diana Green', 40), ('Diana Green', 40),
('Ethan Blue', 33), ('Ethan Blue', 33),
('Fiona Black', 29), ('Fiona Black', 29),
('George Grey', 31), ('George Grey', 31),
('Hannah Yellow', 27), ('Hannah Yellow', 27),
('Ian Purple', 38), ('Ian Purple', 38),
('Julia Orange', 26), ('Julia Orange', 26),
('Kevin Pink', 34), ('Kevin Pink', 34),
('Laura Cyan', 21), ('Laura Cyan', 21),
('Mike Magenta', 37), ('Mike Magenta', 37),
('Nina Teal', 24), ('Nina Teal', 24),
('Oscar Maroon', 32), ('Oscar Maroon', 32),
('Paula Silver', 39), ('Paula Silver', 39),
('Quentin Gold', 23), ('Quentin Gold', 23),
('Rachel Bronze', 36); ('Rachel Bronze', 36);

View File

@ -2,8 +2,8 @@ DROP TABLE IF EXISTS demo;
CREATE TABLE demo CREATE TABLE demo
( (
id BIGINT NOT NULL AUTO_INCREMENT, id BIGINT NOT NULL AUTO_INCREMENT,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
age INTEGER NOT NULL, age INTEGER NOT NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
); );