Pin option FK column definitions so they do not inherit gen_random_uuid()

Fixkamo-shared-library
Shipped
August 3, 2026 at 9:06 PM UTC
Author
Kamo
Commit
987cf30

Hibernate copies the referenced id's columnDefinition onto a new @JoinColumn, so quote_id and option_id were both created DEFAULT gen_random_uuid(). An insert that omits the parent then invents one instead of failing. Pinning columnDefinition to plain UUID stops it recurring on any fresh database.

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