KamoCRM

Stamp AccountAddress dates so an address can actually be saved

Fixkamo-shared-library
Shipped
7 ஆகஸ்ட், 2026 அன்று 5:06 AM UTC
Author
Kamo
Commit
afff998

DATE_CREATED is NOT NULL with a DEFAULT now(), but nothing ever set the field. Hibernate names every insertable column in its INSERT, so it sent an explicit NULL — and an explicit NULL overrides the column DEFAULT, which only applies when the column is omitted. Every ACCOUNT_ADDRESSES insert therefore failed the not-null constraint. The table has held zero rows since it was created, and no account has ever had a primary shipping or billing address: creating an account with any address filled in has never once worked. It surfaced as a 500 that the UI showed far off-screen, so it read as the Create button doing nothing. Adds the @PrePersist/@PreUpdate stamping every other dated entity here already has (Lead, CalendarEvent, AccountGuid). Java-only, no DDL change, so no KamoInitializer run is required.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing