2022-06-09 09:30:46.524 WARN 30395 --- [ main] o.h.t.s.i.ExceptionHandlerLoggedImpl : GenerationTarget encountered exception accepting command : Error executing DDL "
create table order (
order_id bigint not null auto_increment,
accepted_timestamp datetime,
completed_timestamp datetime,
cooked_timestamp datetime,
created_timestamp datetime not null,
estimated_minutes bigint not null,
is_delivery bit not null,
message varchar(100) not null,
pickuped_timestamp datetime,
status bigint not null,
updated_timestamp datetime not null,
store_id bigint not null,
user_id bigint not null,
primary key (order_id)
) engine=InnoDB" via JDBC Statement
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "
expected "identifier"; SQL statement:
테이블 이름을 Order로 했는데, Order가 SQL의 예약어였다.
참고: SQL 예약어 목록
테이블 이름을 Orders로 바꿔줬더니 오류가 해결되었다.
도움이 됐어요 ~ ^^