You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Jean Guillaume LALANNE <ho...@cma-cgm.com> on 2004/12/01 11:24:30 UTC

RE: Object with composite PK to populate

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 : gilles.bayon@laposte.net [mailto:gilles.bayon@laposte.net] 
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)


Howto log the SQL statement that are really executed ?

Posted by Jean Guillaume LALANNE <ho...@cma-cgm.com>.
Hi,

 

I'd like to see the SQL statements that are launched in my logs.

How can I do this ?

Actually, I would like to see whether the lazy loading is working or not.

 

Thanks in advance,

 

Regards

 

Jean-Guillaume LALANNE