Hibernate has a dirty-checking mechanism which can auto-detect changes and generate appropriate UPDATE
queries.
Is there any similar thing that exists for MyBatis?
I know there isn't any one-to-one mapping between a Java-Entity and DB-table in MyBatis, but we do specify resultMap
s. Is there any way in MyBatis that can intelligently calculate the diffs for an object and trigger appropriate UPDATE
queries, without the developer explicitly writing them?