From: AntPort <antonioporto...@gmail.com>
Date: Thu, 4 Oct 2012 13:57:38 -0700 (PDT)
Local: Thurs, Oct 4 2012 4:57 pm
Subject: Re: How to Pass Java List of POJO to Oracle Stored Procedure using MyBatis?
I don't know about table of records, but you can send array of types as an create or replace create or replace --------------------------------------------------------------------------- --------------------------------------------------------------------------- - --------------------------------------------------------------------------- --------------------------------------------------------------------------- - TypeHandler: public void setParameter(PreparedStatement ps, int argNum, Connection conn; // list of maps STRUCT[] structArray = new STRUCT[inParams.size()]; int valueCounter = 0; structArray[valueCounter] = new STRUCT(structDesc, conn, properties); } ARRAY arrayOfType = new ARRAY(arrayDesc, conn, structArray); ps.setArray(argNum, arrayOfType); } Map input parameter:procedure_call(#{listOfMaps,mode=IN,typeHandler=yourTypeHandler}) Dana srijeda, 3. listopada 2012. 03:55:06 UTC+2, korisnik grimmel97 napisao > Hi, > I have been googling this for a while and cannot seem to find any real > I have an Oracle stored procedure that has a number of in parameters that > *Declared in the pacakge:* > *Procedure:* > On the java side, I have 3 corresponding POJO objects representing each of > If so, how would the SQLMap be written? Or do I need to write more > Thanks in advance. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||