CREATE TYPE and Java Mapping - Mailing list pgsql-jdbc

From aleksvp
Subject CREATE TYPE and Java Mapping
Date
Msg-id 1295445091997-3347859.post@n5.nabble.com
Whole thread Raw
List pgsql-jdbc
Hi,
 I have a procedure that returns values of a TYPE (created via CREATE TYPE).
I'm having trouble mapping the return to a Java type.

I'm trying to call it like anyother procedure:
Query qry = null;
List<Struct> results= new ArrayList<Struct>();
Object[] resultado = null;
String sql = "select procedure(parameters);";
qry = em.createNativeQuery(sql);
results= qry.getResultList();

I'm getting a no dialect mapping exception.

Also, I've tried to map a Entity to the type. But when I try to get the
result I got an error on the fields mapping.

Regards.

--
View this message in context:
http://postgresql.1045698.n5.nabble.com/CREATE-TYPE-and-Java-Mapping-tp3347859p3347859.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.

pgsql-jdbc by date:

Previous
From: Maciek Sakrejda
Date:
Subject: Re: date/time out of range
Next
From: "Hiller, Dean (Contractor)"
Date:
Subject: query for schema existence and create schema in jdbc?