You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by Carlos de Luna Saenz <cd...@yahoo.com.mx> on 2008/01/01 18:19:44 UTC

Re: hardcoding value in result map

What about something like
Select #value.hardCodeValue#, column1, column2 from table1 where column1= #value.hardCodeValue2 and column2='whatever'

----- Mensaje original ----
De: bhaarat Sharma <bh...@gmail.com>
Para: user-java@ibatis.apache.org
Enviado: lunes, 31 de diciembre, 2007 15:49:36
Asunto: hardcoding value in result map

Hi,

We are converting our traditional ResultSet code to iBatis.  But are
facing a problem now.

Is there a way to pass a hardcoded value in the resultMap instead of a
column? this hard coded value will come from a javaCode.

so something like this

<result property=\"numberMembers\" column=\"value passed from java
code will come here\"/>

Thanks..






      ____________________________________________________________________________________
¡Capacidad ilimitada de almacenamiento en tu correo!
No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:                      
http://correo.espanol.yahoo.com/