Friday, November 11, 2011

Common MyBatis: Mapped Statements collection does not contain value for....

Correct namespaces
Correct package structure (same java package)
SQL Syntax (maybe a single small query has an extra "," at the end of the select..)
Classpath issues pulling correct jar dependencies
needing a resultMap instead of javaType or related inconsistencies in the mapping files..

and the list will grow...

2 comments:

  1. one space in front of the xml filename

    ReplyDelete
  2. Sysoutprint(fooMapper) will be NULL but the object is not null must do fooMapper.getClass();

    Also, returning Integer values form mapper is a pain. Might have problems casting from a returned null value to Integer to int

    ReplyDelete