Use @CreationTimestamp(source=DB) on ****************

Fixkamo-shared-library
Shipped
April 27, 2026 at 5:41 AM UTC
Author
Kamo
Commit
f2583e9

The DB is the single source of truth for timestamps in this codebase. The canonical Hibernate pattern is @CreationTimestamp(source = SourceType.DB), which makes Hibernate omit the column from INSERT, lets the DB stamp it, then SELECTs the value back into the entity. Replaces the @Generated(INSERT) + @ColumnDefault + insertable=false combo that was mechanically equivalent but did not match the projects standard @CreationTimestamp idiom.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing