mapping java objects with postgresql types

Поиск
Список
Период
Сортировка
От Oussema Benjemaa
Тема mapping java objects with postgresql types
Дата
Msg-id 747805532.5625574.1421941179304.JavaMail.yahoo@jws11165.mail.ir2.yahoo.com
обсуждение исходный текст
Список pgsql-jdbc
 Hi,

I want to pass  array of complex type from java into plpgsql function

I already tried using JDBC Array and Struct types,   but postgresql jdbc driver doesn't implement Struct yet so we weren't able to get thinks work

(in addition of the fact that. (Connection.createStruct is not implemented in postgres JDBC)

and actually as solution , i'm using PGObject to push the data to the database with some diffuclts with the syntax and this is  mainly for types composites having bytea datatype ..

but finally i  succeded to push data to the database with the usage of the  text representation of the array of the type composite .

But i'm strongly ,  looking for an alternative of the PGObject , to avoid passing complex structures (array of types) from jdbc with text representation.

ALso i didn't found documentation for passing such as complex structures including the the rules for text representation of nested types .

Could you please advice ...

Oussema BenJemaa
Senior DBA
 

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

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: logLevelSet is not going from PGPoolingDataSource to PGPoolConnectionDataSource
Следующее
От: Oussema Benjemaa
Дата:
Сообщение: Fw: mapping java objects with postgresql types