Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 20F701337B39 for ; Wed, 19 Jan 2011 09:51:40 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 27126-01 for ; Wed, 19 Jan 2011 13:51:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 8FB4813364DE for ; Wed, 19 Jan 2011 09:51:32 -0400 (AST) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.69) (envelope-from ) id 1PfYRg-0001Z5-07 for pgsql-jdbc@postgresql.org; Wed, 19 Jan 2011 05:51:32 -0800 Date: Wed, 19 Jan 2011 05:51:31 -0800 (PST) From: aleksvp To: pgsql-jdbc@postgresql.org Message-ID: <1295445091997-3347859.post@n5.nabble.com> Subject: CREATE TYPE and Java Mapping MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201101/60 X-Sequence-Number: 21392 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 results= new ArrayList(); 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.