Quantcast

There is no getter for property named '{limit' in 'class FutureExposure'}

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

There is no getter for property named '{limit' in 'class FutureExposure'}

Andreas Markitanis
Hi

I have an insert statement calling an Oracle function as follows:

    <insert id="createPFEProc" statementType="CALLABLE"
               parameterType="com.test.FutureExposure">
        {call etel_tp_package.create_portfolio_pfe(
        #{id},
        #{limitType},
        #{tenor.type},
        #{tenor.length},
        #{status.code},
        #{ownerID},
        #{nullLimit},
        #{limit.value},
        #{limit.isoCurrencyCode},
        #{{limit.euroValue},
        #{availability.value},
        #{availability.isoCurrencyCode},
        #{{availability.euroValue},
        #{pending.value},
        #{pending.isoCurrencyCode},
        #{pending.euroValue},
        #{pfeMultiplier},
        #{pendingGreyLimit},
        #{pendingTenorSetId},
        #{liveTenorIndicator},
        #{pendingTenorIndicator},
        #{lastUpdated},
        #{btNumber},
        #{btid},
        #{userId},
        #{wsid})}
    </insert>

public class FutureExposure extends Exposure {

several private fields with getters and setters

}


public class Exposure  extends BaseBO{

  ....
    private Money limit;
   ....

    public Money getLimit() {
        return limit;
    }

    public void setLimit(Money limit) {
        this.limit = limit;
    }

}

public class Money {

private String isoCurrencyCode;
private BigDecimal value;
private BigDecimal euroValue;

//getters and setters for these

}

I get the following exception:

org.mybatis.spring.MyBatisSystemException: nested exception is
org.apache.ibatis.reflection.ReflectionException: There is no getter
for property named '{limit' in 'com.test.FutureExposure'


Any ideas why this might be going wrong?

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: There is no getter for property named '{limit' in 'class FutureExposure'}

Eduardo Macarron
  #{{limit.euroValue},

remove one {

and also from:

#{{availability.euroValue},

2012/2/23 kkudi <[hidden email]>:

> Hi
>
> I have an insert statement calling an Oracle function as follows:
>
>    <insert id="createPFEProc" statementType="CALLABLE"
>               parameterType="com.test.FutureExposure">
>        {call etel_tp_package.create_portfolio_pfe(
>        #{id},
>        #{limitType},
>        #{tenor.type},
>        #{tenor.length},
>        #{status.code},
>        #{ownerID},
>        #{nullLimit},
>        #{limit.value},
>        #{limit.isoCurrencyCode},
>        #{{limit.euroValue},
>        #{availability.value},
>        #{availability.isoCurrencyCode},
>        #{{availability.euroValue},
>        #{pending.value},
>        #{pending.isoCurrencyCode},
>        #{pending.euroValue},
>        #{pfeMultiplier},
>        #{pendingGreyLimit},
>        #{pendingTenorSetId},
>        #{liveTenorIndicator},
>        #{pendingTenorIndicator},
>        #{lastUpdated},
>        #{btNumber},
>        #{btid},
>        #{userId},
>        #{wsid})}
>    </insert>
>
> public class FutureExposure extends Exposure {
>
> several private fields with getters and setters
>
> }
>
>
> public class Exposure  extends BaseBO{
>
>  ....
>    private Money limit;
>   ....
>
>    public Money getLimit() {
>        return limit;
>    }
>
>    public void setLimit(Money limit) {
>        this.limit = limit;
>    }
>
> }
>
> public class Money {
>
> private String isoCurrencyCode;
> private BigDecimal value;
> private BigDecimal euroValue;
>
> //getters and setters for these
>
> }
>
> I get the following exception:
>
> org.mybatis.spring.MyBatisSystemException: nested exception is
> org.apache.ibatis.reflection.ReflectionException: There is no getter
> for property named '{limit' in 'com.test.FutureExposure'
>
>
> Any ideas why this might be going wrong?
>
Loading...