Saturday, July 20, 2013

org.apache.ibatis.exceptions.TooManyResultsException:

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2

Example is : while fetching by name, name founds in two times.

ID          NAME                           DESCRIPTION

1            Test                              Test Desc...
2            Test                              Test Desc1...

0 comments: