推荐一个在线文档生成器

网址:https://java.bejson.com/generator/

效果:

CREATE TABLE `wo_jp_branch_org`  (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '主键',
  `branch_org_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分支机构组织机构代码',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `法人基本信息外键`(`basic_info_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact;wo_

生成的效果:

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
*  wo_jp_branch_org
* @author miller 2020-08-16
*/
public class WoJpBranchOrg implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 主键
    */
    private String id;

    /**
    * 分支机构组织机构代码
    */
    private String branchOrgCode;


    public WoJpBranchOrg() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBranchOrgCode() {
        return branchOrgCode;
    }

    public void setBranchOrgCode(String branchOrgCode) {
        this.branchOrgCode = branchOrgCode;
    }

}

 





    
                
                
    

    
                id,
                branch_org_code
    

    
        INSERT INTO wo_jp_branch_org
        
                        
                        branch_org_code
                        
        
        
                        
                        #{branchOrgCode}
                        
        
    

    
        DELETE FROM wo_jp_branch_org
        WHERE id = #{id}
    

    
        UPDATE wo_jp_branch_org
        
                    branch_org_code = #{branchOrgCode}
        
        WHERE id = #{id}
    


    

    

    

 

你可能感兴趣的:(java)