mybatis--when updating a field in a DB table, you should be aware of the points

Source: Internet
Author: User

1. Record which tables have field updates.

2. Use Navicat to dump the latest database (schema ) into the SQL directory of the project, as a backup

3. Update the PO class corresponding to the record table, ensuring that the fields of the class and the table field one by one correspond, and by the way regenerate into getter, setter, toString

4. Update the Mapper class corresponding to the record table to ensure that the SQL field is updated in the statement of the PO class Resulttype

5, according to needs, modify Serviceimpl class ...

6, Commit&push

mybatis--when updating a field in a DB table, you should be aware of the points

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.