chore: reformat application codes
This commit is contained in:
parent
7c020072bd
commit
c23218388a
@ -7,5 +7,5 @@ import org.springframework.boot.runApplication
|
||||
class DemoApplication
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
runApplication<DemoApplication>(*args)
|
||||
runApplication<DemoApplication>(*args)
|
||||
}
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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);
|
||||
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);
|
||||
@ -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)
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user