ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sandu Turcan (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATIS-6) Inline parameter map syntax
Date Tue, 07 Dec 2004 20:11:20 GMT
     [ http://nagoya.apache.org/jira/browse/IBATIS-6?page=comments#action_56340 ]
     
Sandu Turcan commented on IBATIS-6:
-----------------------------------

Sorry meant to say mapping.getPropertyName(), not field.

> Inline parameter map syntax
> ---------------------------
>
>          Key: IBATIS-6
>          URL: http://nagoya.apache.org/jira/browse/IBATIS-6
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Reporter: Clinton Begin
>     Assignee: Clinton Begin
>      Fix For: 2.0.8

>
>  The following xml produces an exception.
> <insert id="insertLocationType"
> parameterClass="geoLocation">
> insert into LocationType
> values ( #locationName#,
> #countryCode,jdbcType=CHAR#,
> #region,jdbcType=CHAR#,
> #geoReference,jdbcType=NUMERIC#,
> #latitude,javaType=double,jdbcType=NUMERIC#,
> #longitude,javaType=double,jdbcType=NUMERIC#,
> #locationAbbrev,jdbcType=VARCHAR#,
> #locationTypeCode,jdbcType=CHAR#,
> #WPIName,jdbcType="CHAR"#,
> #noLongerInUse,jdbcType=VARCHAR,handler=charBooleanHandler#,
> #description,jdbcType=VARCHAR#,
> #shortDescription,jdbcType=VARCHAR#,
> #remark,jdbcType=VARCHAR#,
> #createdBy,jdbcType=VARCHAR#,
> #creationDate,jdbcType=DATETIME#,
> #modifiedBy,jdbcType=VARCHAR#,
> #modificationDate,jdbcType=DATETIME#,
> #modificationServer,jdbcType=VARCHAR#
> )
> </insert>
> Caused by: com.ibatis.sqlmap.client.SqlMapException:
> There was an error while
> building the SqlMap instance.
> --- The error occurred in
> mil/navy/spawar/ncs/websked/services/data/location/mappings/GeoLocation.xml.
> --- The error occurred while building an inline
> parameter map.
> --- Check the insertLocationType statement.
> --- Check the inline parameters.
> --- Cause: com.ibatis.common.beans.ProbeException:
> There is no READABLE property
> named 'countryCode,jdbcType=CHAR' in class
> 'mil.navy.spawar.ncs.websked.pojo.data.location.GeoLocationData'
> Caused by: com.ibatis.common.beans.ProbeException:
> There is no READABLE property
> named 'countryCode,jdbcType=CHAR' in class
> 'mil.navy.spawar.ncs.websked.pojo.data.location.GeoLocationData'
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.buildSqlMap(XmlS
> qlMapClientBuilder.java:198)
> at
> com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientB
> uilder.java:61)
> at at
> mil.navy.spawar.ncs.websked.services.data.ws.SqlMapBuilder.
> (SqlMapBuilder.java:32).null(Unknown Source)
> ... 47 more
> Caused by: com.ibatis.common.beans.ProbeException:
> There is no READABLE property
> named 'countryCode,jdbcType=CHAR' in class
> 'mil.navy.spawar.ncs.websked.pojo.data.location.GeoLocationData'
> at
> com.ibatis.common.beans.ClassInfo.getGetterType(ClassInfo.java:188)
> at
> com.ibatis.common.beans.GenericProbe.getClassPropertyTypeForGetter(GenericPr
> obe.java:232)
> at
> com.ibatis.common.beans.GenericProbe.getPropertyTypeForGetter(GenericProbe.j
> ava:142)
> at
> com.ibatis.sqlmap.engine.mapping.parameter.InlineParameterMapParser.resolveT
> ypeHandler(InlineParameterMapParser.java:212)
> at
> com.ibatis.sqlmap.engine.mapping.parameter.InlineParameterMapParser.newParse
> Mapping(InlineParameterMapParser.java:121)
> at
> com.ibatis.sqlmap.engine.mapping.parameter.InlineParameterMapParser.parseInl
> ineParameterMap(InlineParameterMapParser.java:50)
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.applyInlineParam
> eterMap(XmlSqlMapClientBuilder.java:780)
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.processSqlStatem
> ent(XmlSqlMapClientBuilder.java:669)
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseGeneralStat
> ement(XmlSqlMapClientBuilder.java:571)
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseInsert(XmlS
> qlMapClientBuilder.java:465)
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseSqlMap(XmlS
> qlMapClientBuilder.java:430)
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseSqlMapRef(X
> mlSqlMapClientBuilder.java:411)
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.parseSqlMapConfi
> g(XmlSqlMapClientBuilder.java:221)
> at
> com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.buildSqlMap(XmlS
> qlMapClientBuilder.java:194)
> ... 49 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message