getColumnType() will return UUID

getColumnClassName() will return the class that is returned by getObject(), which is indeed a byte array.


On 2012-07-04 06:54, dodtsair wrote:
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()
--
You received this message because you are subscribed to the Google Groups "H2 Database" group. To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/_owxOUZx6UAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.


--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to