Re: Mapping SQL UDT to java class

Поиск
Список
Период
Сортировка
От Vladimir Sitnikov
Тема Re: Mapping SQL UDT to java class
Дата
Msg-id CAB=Je-E27RxwaUXQe1w2aD53uAc8nhtBd=je+L-qgaiBdA+oaA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Mapping SQL UDT to java class  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
Dave is right, SQLData is not yet supported by pgjdbc.

Shen, Ning> it seems impossible to query these UDTs and use the
functions defined in the server without JDBC’s support for the UDT.

That is not quite true.
You can always send/receive arbitrary structures via setString/getString.

Our company uses that a lot with great success (modulo manual escaping
of arrays and structs).
For trivial types like "smallint + bytea" it should be rather simple.

Vladimir


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Markus KARG"
Дата:
Сообщение: Re: Migration to Maven
Следующее
От: Kevin Wooten
Дата:
Сообщение: Re: Mapping SQL UDT to java class