Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.6.v20200131-b7c997804f): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: org.postgresql.util.PSQLException: ERROR: column "master_bundle_product_id" is of type uuid but expression is of type character varying
Hint: You will need to rewrite or cast the expression.
Position: 134
Error Code: 0
Call: INSERT INTO bundles (ID, created_at, DELETED, updated_at, VERSION, master_bundle_product_id, PROJECT_ID) VALUES (?, ?, ?, ?, ?, ?, ?)
bind => [e05d1c16-b91d-47b4-a109-8ba5c7d8f718, 2026-01-20 15:13:25.3437432, false, 2026-01-20 15:13:25.3437432, 1, null, 9e1e3186-03ea-41ad-bdb1-b91b001b5089]
at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:342)
В настоящее время я привязываю значение null для столбца uuid, но оно распознается как строка. [code]public class BundleEntity extends BaseProjectEntity {
if (newBundle.getBundleProducts() != null) { createBundleProducts(projectKey, bundleEntity, newBundle.getBundleProducts()); }
return bundleMapper.toLib(bundleEntity); } [/code] При подтверждении транзакции возникла ошибка: [code]Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.7.6.v20200131-b7c997804f): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: org.postgresql.util.PSQLException: ERROR: column "master_bundle_product_id" is of type uuid but expression is of type character varying Hint: You will need to rewrite or cast the expression. Position: 134 Error Code: 0 Call: INSERT INTO bundles (ID, created_at, DELETED, updated_at, VERSION, master_bundle_product_id, PROJECT_ID) VALUES (?, ?, ?, ?, ?, ?, ?) bind => [e05d1c16-b91d-47b4-a109-8ba5c7d8f718, 2026-01-20 15:13:25.3437432, false, 2026-01-20 15:13:25.3437432, 1, null, 9e1e3186-03ea-41ad-bdb1-b91b001b5089] at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:342) [/code] В чем может быть проблема?