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 ...

        <resultMaps>                                    
                <resultMap id="BLDetailResult" class="BLDetail">
                        <result property="Id.BlNum" column="BHBLNUM"/>
                        <result property="Id.BlUnit" column="BHBLUNIT"/>
                        <result property="Size" column="BHBLSIZE "/>
                        <result property="Type" column="BHBLTYPE"/>
                </resultMap>
        </resultMaps>

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



Reply via email to