cristof commented on code in PR #124:
URL: https://github.com/apache/openjpa/pull/124#discussion_r1958325072


##########
openjpa-kernel/src/main/java/org/apache/openjpa/meta/JavaTypes.java:
##########
@@ -417,6 +421,11 @@ public static Object convert(Object val, int typeCode) {
                 if (val instanceof String)
                     return Short.valueOf(val.toString());
                 return val;
+            case UUID_OBJ:
+                if (val instanceof String) {
+                    return UUID.fromString(val.toString());

Review Comment:
   I used ```val.toString()``` because of how other cases use it (such as LONG, 
INT etc.). Exchanged for (String) val as suggested and tested again on hsql, 
h2, h2-2, pg-13 to pg-17, mysql lts and latest, mariadb lts and latest, and 
oracle XE 21c.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@openjpa.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to