Hi,

Could you help me the following error :

I get Cause: com.ibatis.sqlmap.client.SqlMapException: Error instantiating 
collection property for mapping 'room' Cause: java.lang.ClassCastException. Do 
you know why this is happening?

<sqlMap namespace="HotelInfo">

        resultMap id="room" class="roomData"  >
                <result property="roomNumber" column="ROOM_NO" nullValue="" />
        </resultMap>
        
        <resultMap id="hotel" class="hotelData"  >
                <result property="roomData" resultMap="HotelInfo.room"/>
        </resultMap>

        <select id="findByPrimaryKey" resultMap="hotel" 
parameterClass="searchData">
                SQL GOES IN HERE
        </select>

Regards
Catherine


**********************************************************************
***********  Department of Agriculture and Food ***************

The information contained in this email and in any
attachments is confidential and is designated solely
for the attention and use of the intended recipient(s).
This information may be subject to legal and professional
privilege.  If you are not an intended recipient of
this email, you must not use, disclose, copy,
distribute or retain this message or any part of it.
If you have received this email in error, please
notify the sender immediately and delete all copies of
this email from your computer system(s).
**********************************************************************

Reply via email to