Dao code generation method 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, increased code compilation failure, and non-standard code, so as to improve standardization and uniformity, avoid duplication of work, and increase success rate Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] like 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.
[0060] The presentation layer 11 shown is generally used to process and control data requests and page jumps.
[0061] 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 for different business names). Both the business interface class and the business service class may include a get function, a getList function, an add function, an addSelective function, an update function, an updateSelect...
Embodiment 2
[0239] Figure 12 A schematic structural diagram of a Dao code generation device provided by an embodiment of the present invention is shown. The Dao code generating device 100 is applied in a Java development framework.
[0240] The code generation device 100 includes a conversion module 110 , an acquisition module 120 , a judgment module 130 and a generation module 140 .
[0241] 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.
[0242] The acquiring module 120 is configured to acquire the current session control information of the database.
[0243] A judging module 130, configured to judge whether there is an operation of a predetermined method ...
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