ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Hanson" <mnbo...@gmail.com>
Subject RE: Problem calling stored procedure having no parameter
Date Wed, 15 Nov 2006 22:55:12 GMT
Are there any plans to change the schema so that a parameter map is
not required for a stored procedure?

------------------
From: Oddur Snær Magnússon [mailto:[EMAIL <%5BEMAIL> PROTECTED]
Sent: Mon 7/24/2006 10:11 PM
To: user-cs@ibatis.apache.org
Subject: RE: Problem calling stored procedure having no parameter



I got around it by having an empty parametermap
        <parameterMaps>
                <parameterMap id="noparams"></parameterMap>
        </parameterMaps>

And then using that in the <procedure> statement:

<procedure id="GetAllSomething"  parameterMap="noparams"
resultMap="SomeThing">sprocName</procedure>

I think that's the only solution since the parameterMap attribute is required
on the procedure element.

- Oddur

Mime
View raw message