Hi Gilles,

 

I am currently trying to use IDictionary for my parameterClass.

One of my parameter is a DateTime because it is related to a column in oracle that is from the DATE type.

I seems that my request does not work because of this parameter.

I get a “System.Data.OracleClient.OracleException: ORA-01745: invalid host/bind variable name” exception…

 

What should I do to avoid this problem ? I have seen the dbtype attribute on the parameter element of the resultMap.

Should I use this kind of attribute ?

 

Thanks a lot for your help,

 

Regards

 

Jean-Guillaume LALANNE

 


De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : mardi 30 novembre 2004 13:29
À : ho.jglalanne
Objet : Re:Object with composite PK to populate

 

declare a new resultMap BLDetailPK
and use


<resultMaps>
 <resultMap id="BLDetailResult" class="BLDetail">
  <result property="Id" resultMapping="BLDetailPK" />
  <result property="Size" column="BHBLSIZE "/>
  <result property="Type" column="BHBLTYPE"/>
 </resultMap>
</resultMaps>

 

see UnitTest with Order and Item mapping.


 

> Hi all,

>

>

> I am trying to use ibatisnet with my objects.

> One of these objects has a composite primary key.

>

> When I try to use resultmap, as it is described in the following lines, I

> get an error saying that there are no setters and getters for the Id.blNum

> and Id.BlUnit attributes ...

>

>

>

>

>

>

>

>

>

>

> BLHeader is at this url :

> http://jeanguitou.jexiste.fr/tests/uml_bldetail.gif

>

> What Is the correct way to proceed ?

>

> Thanks in adavance for your help.

>

> Regards

>

> Jean-Guillaume LALANNE

>

>

>

 

 

Accédez au courrier électronique de La Poste : www.laposte.net ;

3615 LAPOSTENET (0,34 /mn) ; tél : 08 92 68 13 50 (0,34/mn)

Reply via email to