-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Select using Stored Proc
PostPosted: Fri May 22, 2009 9:47 am 
Newbie

Joined: Thu May 14, 2009 4:19 am
Posts: 12
I'm trying to use a stored Proc that select from 2 tables, performs some processing then return the Data.
However I get a key not found exception when loading the XML config.

This is the config I'm using...

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" >
<sql-query name="GetApplInstrumentsById" >
<return class="WindowsFormsSql.Model.TestInstrument, WindowsFormsSql">
<return-property name="SubMarket" column="SubMarket" />
<return-property name="ValueDec" column="ValueDec" />
<return-property name="ValueFmt" column="ValueFmt" />
<return-property name="ValueMax" column="ValueMax" />
<return-property name="ValueMin" column="ValueMin" />
<return-property name="ValueTick" column="ValueTick" />
<return-property name="ValueType" column="ValueTypeStr" />
<return-property name="IsApplicationInstrument" column="IsApplicationInstrument" />
</return>
exec dbo.p_GetInstrumentsById ?
</sql-query>
</hibernate-mapping>

The stored Proc returns more data than that, but I only need some of the values.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.