KamoCRM

Map the metadata array columns as Java arrays, not List

Fixkamo-shared-library
Ya
5 Agosti 2026, 22:54 UTC
Mwandishi
Kamo
Ahadi ya
7db6a82

Both entities declared their array columns as List<T> under an explicit @JdbcTypeCode(SqlTypes.ARRAY). On Hibernate 6.2.13 that combination resolves the array's element class to java.lang.Class, so every flush ended in BasicCollectionJavaType.unwrap -> StringJavaType.unwrap(.., java.lang.Class) "Could not convert 'java.lang.String' to 'java.lang.Class' .. to unwrap" thrown at commit. Nothing was ever written: email_metadata.conversations and email_metadata.search_index have both sat at zero rows since they were created, so conversation threading and email search have never worked. Basic Java arrays take Hibernate's native array path instead of the collection path that mis-resolves. The column types are unchanged -- text[] and uuid[] were always correct -- so this needs no migration.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei