From 73a4c11c19524be17f18fe0f3f3c07eeb7c47bdb Mon Sep 17 00:00:00 2001 From: Radek Felcman Date: Fri, 13 Dec 2024 13:14:25 +0100 Subject: [PATCH] UUID field type mapping - PostgreSQLPlatform (#2284) - backport from master (#2325) Signed-off-by: Radek Felcman (cherry picked from commit 28ffe73f20ec4b4a200951ca26a21c3b39048355) --- .../persistence/platform/database/PostgreSQLPlatform.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/platform/database/PostgreSQLPlatform.java b/foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/platform/database/PostgreSQLPlatform.java index 6759e10f374..fa5f8074aff 100644 --- a/foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/platform/database/PostgreSQLPlatform.java +++ b/foundation/org.eclipse.persistence.core/src/main/java/org/eclipse/persistence/platform/database/PostgreSQLPlatform.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 1998, 2023 Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2019, 2023 IBM Corporation. All rights reserved. + * Copyright (c) 1998, 2024 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2024 IBM Corporation. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at @@ -440,6 +440,8 @@ protected Hashtable, FieldTypeDefinition> buildFieldTypes() { fieldTypeMapping.put(java.time.OffsetDateTime.class, new FieldTypeDefinition("TIMESTAMP", false)); fieldTypeMapping.put(java.time.OffsetTime.class, new FieldTypeDefinition("TIME", false)); + fieldTypeMapping.put(java.util.UUID.class, new FieldTypeDefinition("UUID", false)); + return fieldTypeMapping; }