Re: UUID datatype - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: UUID datatype
Date
Msg-id 19953.1203178102@sss.pgh.pa.us
Whole thread Raw
In response to Re: UUID datatype  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Kris Jurka <books@ejurka.com> writes:
> There aren't any exact plans, but I was thinking we would map the pg uuid
> type onto the java.util.UUID type.  The only problem with that
> is java.util.UUID only appeared in the 1.5 JDK, so we'd only be
> able to support it for some driver versions.  Do people think it's better
> to always map it to a PGuuid class?

Given that UUID is only in the latest PG version, it doesn't seem
unreasonable to support it only in newer JDKs too.  Five years down
the road, not having mapped it to java.util.UUID will definitely
seem to have been a mistake, no?

            regards, tom lane

pgsql-jdbc by date:

Previous
From: ntr
Date:
Subject: Re: UUID datatype
Next
From: Kris Jurka
Date:
Subject: Re: UUID datatype