Mybatis code generation method, apparatus, and computer terminal
A computer terminal and code generation technology, applied in the field of Java development, can solve problems such as low work efficiency of developers, increase code compilation failure, code irregularity, etc., to improve standardization and uniformity, avoid duplication of work, and improve success rate. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] figure 1 It shows a schematic flowchart of a Mybatis code generation method provided by the embodiment of the present invention. The Mybatis code generation method is applied to the Java development framework.
[0057] Such as figure 1 As shown in FIG. 2 , it is a schematic structural diagram of the interaction between a Java development framework and a database provided by an embodiment of the present invention. The Java development framework 10 is divided into a presentation layer 11, a business logic layer 12, a data access layer 13 and a Mybatis SQL layer.
[0058] The presentation layer 11 shown is generally used to process and control data requests and page jumps.
[0059] Described business logic layer 12 is used for generating Service code, and described Service code comprises business interface class (such as IXX Service class, and wherein, XX can be the title of different business) and business service class (such as XX Service class, and wherein, XX can be...
Embodiment 2
[0235] Figure 12 A schematic structural diagram of a Mybatis code generation device provided by an embodiment of the present invention is shown. The Mybatis code generation device 100 is applied in a Java development framework.
[0236] The Mybatis code generation device 100 includes a conversion module 110 , a determination module 120 , an acquisition module 130 and a generation module 140 .
[0237] The conversion module 110 is used to obtain the summary information of the table in the database and the field information of each field in the table, and convert the summary information and the field information into the entity information of the Java specification, wherein the entity information includes The variable of the Bean object and the method name of the Bean object.
[0238] The determination module 120 is configured to determine the attribute value corresponding to the entity information according to the preset correspondence table.
[0239] The acquisition module...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com