해결된 질문
작성
·
173
0
[질문 내용]
여기에 질문 내용을 남겨주세요.
강의 11분쯤
insert 로그 확인 후 h2 db에 들어가 값이 들어가는지 확인을 하는데요
저도 로그에서 insert문 확인 후 h2 db에 들어 갔는데 값이
계속 안 나와 질문 올립니다.
밑에는 로그 내역이고 구글 드라이브 링크도 같이 올립니다.
2024-06-20T21:12:05.260+09:00 DEBUG 21664 --- [ Test worker] org.hibernate.SQL :
select
m1_0.member_id,
m1_0.city,
m1_0.street,
m1_0.zipcode,
m1_0.name
from
member m1_0
where
m1_0.name=?
2024-06-20T21:12:05.276+09:00 INFO 21664 --- [ Test worker] p6spy : #1718885525275 | took 7ms | statement | connection 3| url jdbc:h2:mem:7cd22d26-ead4-4150-987b-79b62bd18ed5
select m1_0.member_id,m1_0.city,m1_0.street,m1_0.zipcode,m1_0.name from member m1_0 where m1_0.name=?
select m1_0.member_id,m1_0.city,m1_0.street,m1_0.zipcode,m1_0.name from member m1_0 where m1_0.name='kim';
2024-06-20T21:12:05.289+09:00 DEBUG 21664 --- [ Test worker] org.hibernate.SQL :
select
next value for member_seq
2024-06-20T21:12:05.292+09:00 INFO 21664 --- [ Test worker] p6spy : #1718885525292 | took 1ms | statement | connection 3| url jdbc:h2:mem:7cd22d26-ead4-4150-987b-79b62bd18ed5
select next value for member_seq
select next value for member_seq;
2024-06-20T21:12:05.336+09:00 DEBUG 21664 --- [ Test worker] org.hibernate.SQL :
insert
into
member
(city, street, zipcode, name, member_id)
values
(?, ?, ?, ?, ?)
2024-06-20T21:12:05.340+09:00 INFO 21664 --- [ Test worker] p6spy : #1718885525340 | took 0ms | statement | connection 3| url jdbc:h2:mem:7cd22d26-ead4-4150-987b-79b62bd18ed5
insert into member (city,street,zipcode,name,member_id) values (?,?,?,?,?)
insert into member (city,street,zipcode,name,member_id) values (NULL,NULL,NULL,'kim',1);
2024-06-20T21:12:05.345+09:00 INFO 21664 --- [ Test worker] p6spy : #1718885525345 | took 0ms | commit | connection 3| url jdbc:h2:mem:7cd22d26-ead4-4150-987b-79b62bd18ed5
;
혼자 해결을 하고 싶었는데 가망이 없어 질문 올립니다..
부탁드립니다!!
ㅠㅠㅠㅠㅠ
https://drive.google.com/file/d/1k4Dsk8P3O2Ofm0Ab-CyVTA98aN-66p1_/view?usp=drive_link