jowoohyeong / TIGENSOFT

0 stars 0 forks source link

eclipse > console Error Message ! #17

Open jowoohyeong opened 1 year ago

jowoohyeong commented 1 year ago

The file is locked h2 // H2database 설정 변경 후 .db파일 삭제 후 재생성

jowoohyeong commented 1 year ago

jpa.save("\~") update Column '~' cannot be null

jowoohyeong commented 1 year ago

Unsupported database file version or invalid file header in file Unsupported database file version or invalid file header in file "C:/Users/TIGEN_221123/eclipse-workspace/JPAQuerydsl/test.mv.db

jowoohyeong commented 1 year ago

기본적으로 JPA는 transaction을 기반으로 작동하게 되어있다. transaction 단위에 따라 1차 캐시 영역에 있는 객체들이 db에 flush되어 영속화되기 때문이다. 그러한 영속 작업을 하는 persist()apthemdp 객체가 들어갔으나 가능한 transaction이 존재하지 않았기에 에러가 난 것이다.

※ @Transactional가 존재하지 않아 발생한 오류 ! ※ https://sas-study.tistory.com/348

jowoohyeong commented 1 year ago

Some of selected resources were not committed.

jowoohyeong commented 1 year ago

H2 database: NULL not allowed for column "ID"

jowoohyeong commented 1 year ago

다른 프로세스가 파일의 한 부분을 잠갔으므로, 프로세스가 해당 파일을 액세스할 수 없습니다

jowoohyeong commented 1 year ago

SQL Error: 17059, SQLState: 99999 [02-27 11:27:29.322] [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] ERROR SqlExceptionHelper - 내부 표기로 변환할 수 없습니다