pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: aleksvp <aleksvp@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: CREATE TYPE and Java Mapping
Date: Wed, 19 Jan 2011 05:51:31 -0800 (PST)
Message-ID: <1295445091997-3347859.post@n5.nabble.com> (raw)


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.



Message-ID: <1295445091997-3347859.post@n5.nabble.com>
Permalink:  ../1295445091997-3347859.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1295445091997-3347859.post@n5.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: aleksvp@gmail.com
  Subject: Re: CREATE TYPE and Java Mapping
  In-Reply-To: <1295445091997-3347859.post@n5.nabble.com>
  References: <1295445091997-3347859.post@n5.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox