Search code examples
javamybatismybatis-generator

What are the return values for the mybatis update functions?


We're using MyBatis 3.0.6 to work with our database.

The MyBatis generator will automatically generate 4 updateByXYZ() methods. Each of these methods returns an int.

I've been digging all over but can't find any documentation telling me what possible values are returned from these methods. Anybody know?


Solution

  • It's the number of records affected(updated or deleted)