Universal mapper

1. Why do you need a generic mapper plugin?

  The generic mapper plugin can automatically generate sql statements.

  Although mybatis has reverse engineering and can directly generate XxxMapper.xml files, there are limitations in this way of generation. For example, if your entity class increases or decreases or modifies a field, then your XxxMapper.xml also needs to be modified.

  If the general mapper plug-in is used, XxxMapper.xml can be omitted. As long as the entity class is modified, the sql statement generated by the general mapper will also change accordingly.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324895396&siteId=291194637