ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mr.Squirrel" <francois.alb...@univ-nantes.fr>
Subject Mapping an Array of String
Date Tue, 01 Jun 2010 14:14:38 GMT


i am calling an oracle stored procedure which return the type "TABLE OF
VARCHAR2" (as output parameter)
How can i map this type to the java type "String []"  ?

SqlMap.xml :
<parameterMap id="calculDroits" class="CalculDroits">
    	<parameter property="seqFormation" jdbcType="ARRAY"
javaType="java.lang.String[]" mode="OUT" />

<procedure id="pCalculDroits" parameterMap="calculDroits">
	    { call pbw_calculDroitsReins.Du(?) }

JavaBean CalculDroits.java :
public class CalculDroits implements Serializable{

	private static final long serialVersionUID = 9014779368033647012L;
	private String[] codesDroit;

	public String[] getCodesDroit() {
		return codesDroit;
	public void setCodesDroit(String[] codesDroit) {
		this.codesDroit = codesDroit;

Thank you
View this message in context: http://old.nabble.com/Mapping-an-Array-of-String-tp28742440p28742440.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message