2 posts in total

Mybatis

Posts tagged

Mybatis Batch mode

by Mallim1 min read

IBATIS/Mybatis has the same underlying thing to watch out: To get benefit from batch executor, all the statements must be the same (it internally uses java.sql.PreparedStatement#addBatch()). If you use <foreach />, the statement changes and MyBatis has to create a new state ...

Mybatis Single Column Mystic

by Mallim1 min read

Scenario Encountered In the associated java interface In the mybatis xml Upon selecting a non-existing id, the following error occurs: attempted to return null from a method with a primitive return type Solution In Java to ensure you are able to get the Null back and handle it ...