Let DB fill **************** via @Generated(INSERT)

Fixkamo-shared-library
出荷済み
2026年4月27日 5:39 UTC
プロフィール
Kamo
コンテンツ
738020a

INSERTs were failing with: null value in column "date_created" violates not-null constraint @ColumnDefault only declares the DB-side default for new rows; Hibernate by default still listed date_created in the INSERT column list with a null value, beating the default. @Generated(event = EventType.INSERT) + insertable=false makes Hibernate omit the column from INSERT so the CURRENT_TIMESTAMP default actually fires, then SELECT it back so the in-memory entity reflects the persisted value. Matches the project rule of keeping timestamps DB-driven (no Instant.now() in JPA code).

すべての変更

配送を見るのが好きですか?

これらのアップデートは、自動的にワークスペースに埋め込まれます。 週1回無料スタートし、週1回生育する.

永遠に無料で始める料金を見る