Database mapping file generation method and device, equipment and storage medium

A technology for mapping files and databases, applied in the fields of computers and databases, can solve problems such as cumbersome processes, and achieve the effect of solving cumbersome processes and improving generation efficiency

Pending Publication Date: 2022-03-04
CHINA CONSTRUCTION BANK
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when using mybatis, you need to create a mapping (mapper) file based on the data table fields, and you need to configure the dependencies between them. This kind of work is very trivial and repetitive. Although mybatis officially provides tools to assist in the creation, these tools still need Manually add a large number of configuration parameters, and each time you need to manually execute to generate a new mapper file, this process is still relatively cumbersome

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Database mapping file generation method and device, equipment and storage medium
  • Database mapping file generation method and device, equipment and storage medium
  • Database mapping file generation method and device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] In order to make the purpose, technical solutions and advantages of the application clearer, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application. In the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other. Also, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0057] In order to facilitate the understanding of the te...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a database mapping file generation method and device, equipment and a storage medium, relates to the technical field of databases, and is used for improving the generation efficiency of a database mapping file. The method comprises the steps that in the compiling process of a target Maven project, a mapping file generation plug-in introduced into a project object model file corresponding to the target Maven project is triggered, and a mapping file is generated according to the mapping file generation plug-in; analyzing an entity relation graph file corresponding to a target database to obtain at least one entity element set included in the entity relation graph file; creating an entity class set, and storing the at least one element set in the entity class set; and calling the mapping file generation plug-in, traversing each database table in the entity class set, and generating a corresponding mapping file for each database table.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to the field of database technology, and provides a method, device, equipment and storage medium for generating a database mapping file. Background technique [0002] Java is an object-oriented enterprise-level application development language. When using the Java language for application system development, it is generally inseparable from the operation of the database. The Java language exposes the interface to the database operation, and the specific implementation is determined by the database. implemented by the provider itself. [0003] At present, the more commonly used object relational mapping (Object Relational Mapping, ORM) frameworks of the Java language class data layer include Hibernate and Mybatis. Mybatis is widely used because of its lightweight framework and flexible use. However, when using mybatis, you need to create a mapping (mapper) file based on ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/21G06F16/81G06F8/30
CPCG06F16/21G06F8/315G06F16/81
Inventor 张福到李琢付二建赵永波景雅雯董晓宁裴养
Owner CHINA CONSTRUCTION BANK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products