ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff P <killingd...@hotmail.com>
Subject parameterMap accesible from multiple sql maps not working
Date Sat, 17 Jan 2009 04:26:58 GMT

The manuals says this:
"Note! Parameter Map names are always local to the SQL Map XML file that
they are defined in. You can
refer to a Parameter Map in another SQL Map XML file by prefixing the id of
the Parameter Map with the
id of the SQL Map (set in the <sqlMap> root tag). For example, to refer to
the above parameter map from a
different file, the full name to reference would be

how come this:

sqlMap file #1:
<sqlMap namespace="TableType" >
    <parameterMap id="SyncDatesMap" class="SyncDates" >
        <parameter property="oldSyncDate" jdbcType="TIMESTAMP"
javaType="Date" />
        <parameter property="currentSyncDate" jdbcType="TIMESTAMP"
javaType="Date" />

sqlMap file #2:
<sqlMap namespace="ColumnGroup" >
    <select id="countUnsyncedByDate" parameterMap="TableType.SyncDatesMap"
query here

gives me this exception:
com.ibatis.sqlmap.client.SqlMapException: There is no parameter map named
TableType.SyncDatesMap in this SqlMap.

How can I tell iBatis to look in sqlMap with namespace "TableType" rather
than staying in "ColumnGroup"?
Thanks in advance
View this message in context: http://www.nabble.com/parameterMap-accesible-from-multiple-sql-maps-not-working-tp21513021p21513021.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

View raw message