I am using BeanPropertySqlParameterSource for executing update on JDBC sql.
My bean has 'active' property of type 'Boolean'. And hence getter method if 'isActive() returning Boolean type.
But BeanPropertySqlParameterSource is not able to work with 'isActive()' method. I get this exception:
============
org.springframework.dao.InvalidDataAccessApiUsageE xception:
No value supplied for the SQL parameter 'active':
Invalid property 'active' of bean class [com.jframeworks.template.entity.config.Configurati onGroup]:
Bean property 'active' is not readable or has an invalid getter method:
Does the return type of the getter match the parameter type of the setter?
=============
If i change method to getActive, then it works. I have been trying to debug this problem, to find root cause, but getting lost in complexity of PropertyDescriptions and internal caches.
One thing, I figured out, it's using java.beans package instead of apache common utils.
Is it bug or I am doing something wrong?
I am using Spring 3.1.0.M1, MySQL 5.1.x, Accessing DB using simplejdbctemplate object.


Reply With Quote
