mybatis/mybatis-3 — pull request #324 by abel533 (2014-12-31 14:53:25+00:00)
Title: When insert a list or array,resolve the useGeneratedKeys error.

When insert a list or array,resolve the useGeneratedKeys error.

The Sample:
======

Mapper.xml File:
```xml

insert into country(countryname,countrycode)
VALUES

(#{country.countryname},#{country.countrycode})

```

The Java code File:

```java
List countryList = new ArrayList();
Country country = new Country();
country.setCountryname("Name1");
country.setCountrycode("N1");
countryList.add(country);

country = new Country();
country.setCountryname("Name2");
country.setCountrycode("N2");
countryList.add(country);

country = new Country();
country.setCountryname("Name3");
country.setCountrycode("N3");
countryList.add(country);

country = new Country();
country.setCountryname("Name4");
country.setCountrycode("N4");
countryList.add(country);
//ERROR:
//Caused by: org.apache.ibatis.binding.BindingException:
//Parameter 'id' not found. Available parameters are [list]
int result = sqlSession.insert("insertAll",countryList);

for (Country country1 : countryList) {
System.out.println(country1.getId());
}
```

Solution
======

Add a method to handle the parameters:

```java
private Collection