logo       


Stored procedures not working?: msg#00486

Subject: Stored procedures not working?

Hello!

 

I am having a problem with stored procedures in iBatis. I use the FireBird (JayBird) JDBC driver connecting to an InterBase-Server.

 

My SqLMap.xml file looks the following:

 

<sqlMap>

      <select id="validateUser" parameterClass="ebet.User" resultClass="java.lang.Integer">

            SELECT COUNT(*) FROM WEB_KUNDEN WHERE username=#userName# AND passwort=#password#

      </select>

 

      <resultMap id="mainSportsResult" class="ebet.MainSport" >

            <result property="caption" column="HSPBEZ"/>

            <result property="code" column="HSPART"/>

            <result property="sorter" column="P_SORTKZ"/>

      </resultMap>

 

      <procedure id="selectMainSports" resultMap="mainSportsResult" parameterClass="ebet.SystemConfig">

            {call WEB_HSPORTART(#language#, #company#, 0, #betMode#)}

      </procedure>

</sqlMap>

 

In general iBatis is working in my application for simple queries, so this could be no database or application problem I think. But when I try to execute the procedure:

 

List dataList=session.queryForList("selectMainSports",app.getSystemConfig());

 

-> I only get 1 DataSet back in the List object – but when executed

-> directly on the db (using the same parameters like in my application)

-> I get around 6 DataSets - how could this be??

 

Am I doing anything wrong in my SqlMap?? I really have no idea anymore and it would be a pleasure to read any of your suggestions ...

 

Thanks and greetings, Michael

 

 

 

 

Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe