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.  [ 2 posts ] 
Author Message
 Post subject: Help - How do i capsulate the Store Procedure in one Object
PostPosted: Wed Mar 22, 2006 7:05 pm 
Regular
Regular

Joined: Wed Feb 22, 2006 11:28 am
Posts: 65
Location: Santiago, Chile
Hello Every Body:

I am founding one problem with hibernate Query Language:

I worte:
<sql-query name="getInfoMercadoNemo" callable="true" >
<return alias="emp" class="InfMercadoNemoResumTelepreVO">
<return-property name="montoCompra" column="compra"/>
<return-property name="montoVenta" column="venta"/>
<return-property name="corredor_com" column="corredor_com"/>
<return-property name="corredor_ven" column="corredor_ven"/>
<return-property name="cantidadCompra" column="cantidad_com"/>
<return-property name="cantidadVenta" column="cantidad_ven"/>
</return>
<![CDATA[
exec ACResumenTelepregon 'CHILE'
]]>
</sql-query>

I am doing the query, hibernate throws me error, it say InfMercadoNemoResumTelepreVO is not mapped.

The class InfMercadoNemoResumTelepreVO is not present in any hbm-mapping files, because that class is one simple bean for presentation.

For that reason, how can i do to solve this problem?

Thanks for your help.

Regards.

Neketsu Shonen


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 1:21 am 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
You can't, at the moment. Either map the class, or use return-scalars instead.

There is a new feature coming (perhaps it's in 3.2 already?) that will allow you to create a property/value map in this situation, but that won't help you yet.


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

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.