2016-08-11 6 views
1

マスタクエリから関連付けクエリに複数の列を渡すことができません。Mybatisマスタークエリから関連付けクエリに複数の列を渡すことができません

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'CustomerId' not found. Available parameters are [] 


@SelectProvider(type = CustomerProvider.class, method = "fetchAllById") 
@Results({ 
     @Result(property="accounts", 
       column="customerId, accountId", 
       javaType=Account.class, 
       one = @One(select="com.deeshank.dao.AccountMapper.fetchAccounts", 
         fetchType = FetchType.EAGER)) 
}) 
List<Customer> fetchAllById(CustomerQueryRequest queryRequest); 

customerIdとaccountIdは、マスタークエリのselect columsnに由来します。 ご協力いただければ幸いです。

答えて

関連する問題