You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to h2-da...@googlegroups.com
I am a little confused. When I was using ibatis to generate pojos based on a h2 schema that included UUIDs then the pojos themselves did not use the UUID type.
Now that I am revisiting h2 I am running some plain JDBC code, and the class name h2 uses (getColumnClassName) for the UUID column type is [B. Which basically means byte[]. Why does h2 give a byte[] as the class name for a UUID column instead of a UUID.
I read the documentation at http://www.h2database.com/html/datatypes.html#uuid_type Which says that the getObject returns type UUID, so just not able to understand the connection between getColumnClassName and getObject(n).getClass()
Noel Grandin
unread,
Jul 5, 2012, 4:30:38 AM7/5/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to h2-da...@googlegroups.com, dodtsair
getColumnType() will return UUID
getColumnClassName() will return the class that is returned by
getObject(), which is indeed a byte array.