CN115268930A - Method and device for generating persistent layer archive file, electronic equipment and medium - Google Patents
Method and device for generating persistent layer archive file, electronic equipment and medium Download PDFInfo
- Publication number
- CN115268930A CN115268930A CN202210891263.0A CN202210891263A CN115268930A CN 115268930 A CN115268930 A CN 115268930A CN 202210891263 A CN202210891263 A CN 202210891263A CN 115268930 A CN115268930 A CN 115268930A
- Authority
- CN
- China
- Prior art keywords
- persistent layer
- project
- information
- source code
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/40—Transformation of program code
- G06F8/41—Compilation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a method and a device for generating a persistent layer archive file, electronic equipment and a medium. The method includes the steps that model information of a database model corresponding to a target project is configured according to project information of the target project; processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project; and compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target project. The method improves the compiling efficiency of the persistent layer code and reduces the workload of java developers for modeling the persistent layer.
Description
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for generating a persistent layer archive file, electronic equipment and a medium.
Background
Today, with the rise of enterprise applications, enterprises must develop a great deal of applications every day to meet various demands of consumers, which results in a rapid expansion of the amount of developed code on the one hand, and on the other hand, although the content of the application development is different, it can be found through long-term development that many codes are extremely similar, especially in a persistent layer.
Particularly for the development of J2EE application, for a long time, the software development process based on J2EE generally selects one or more open source frameworks familiar to developers, organizes the dependency relationship of the frameworks from scratch, and then writes codes based on the frameworks, most of the work is repeated, and the writing of the basic codes is tedious and occupies most of the development time.
Disclosure of Invention
An embodiment of the present application aims to provide a method, an apparatus, an electronic device, and a medium for generating a persistent layer archive file, so as to solve the above problems in the prior art, and enable acquisition of a charge remaining duration with a high accuracy。
In a first aspect, a method for generating a persistent layer archive file is provided, where the method may include:
configuring model information of a database model corresponding to a target project according to the project information of the target project;
processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project;
and compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target project.
In one possible implementation, the project information includes project execution logic and project information corresponding to the target project;
according to the project information of the target project, configuring the model information of the database model corresponding to the target project, including:
configuring model information of a database model corresponding to a target project according to the project execution logic of the target project and corresponding project information, wherein the model information comprises structural parameters of at least one database table and associated parameters among different database tables; wherein the structural parameters of the database table include a table identifier of the database and field information in the database table.
In one possible implementation, the preset code generation rule is a Freemarker technical rule.
In one possible implementation, after processing the model information by using a preset code generation rule and generating a persistent layer source code corresponding to the target item, the method further includes:
acquiring a generation path of the persistent layer source code;
before compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target item, the method further comprises:
and configuring a compiling path of the persistent layer source code by using a preset path configuration plug-in based on the generating path of the persistent layer source code.
In one possible implementation, the preset path configuration plug-in is a project management tool Maven plug-in.
In one possible implementation, after obtaining the persistent-layer Java archive file corresponding to the target item, the method further includes:
acquiring update information of the target project;
updating the model information based on the updating information to obtain updated model information;
processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project, wherein the method comprises the following steps:
and processing the updated model information by adopting a preset code generation rule to generate a new persistent layer source code corresponding to the target project.
In one possible implementation, the persistent layer Java archive file corresponding to the target item is a Java archive file based on a Java persistent layer framework or a Java archive file based on an application program interface persistent layer framework.
In a second aspect, an apparatus for generating a persistent layer archive file is provided, and the apparatus may include:
the configuration unit is used for configuring the model information of the database model corresponding to the target project according to the project information of the target project;
the generating unit is used for processing the model information by adopting a preset code generating rule to generate a persistent layer source code corresponding to the target project;
and the compiling unit is used for compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target item.
In one possible implementation, the project information includes project execution logic and project information corresponding to the target project;
the configuration unit is specifically configured to configure model information of a database model corresponding to a target item according to an item execution logic of the target item and corresponding item information, where the model information includes a structure parameter of at least one database table and an association parameter between different database tables; wherein the structural parameters of the database table include a table identifier of the database and field information in the database table.
In one possible implementation, the preset code generation rule is a Freemarker technical rule.
In one possible implementation, the apparatus further comprises:
the obtaining unit is used for obtaining a generation path of the persistent layer source code;
the configuration unit is further configured to configure the compiling path of the persistent layer source code by using a preset path configuration plug-in based on the generation path of the persistent layer source code.
In one possible implementation, the preset path configuration plug-in is a project management tool Maven plug-in.
In one possible implementation, the apparatus further comprises an updating unit;
the acquisition unit is further used for acquiring the update information of the target item;
the updating unit is used for updating the model information based on the updating information to obtain updated model information;
and the generating unit is further configured to process the updated model information by using a preset code generation rule, and generate a new persistent layer source code corresponding to the target project.
In one possible implementation, the persistent layer Java archive file corresponding to the target item is a Java archive file based on a Java persistent layer framework or a Java archive file based on an application program interface persistent layer framework.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the above first aspects when executing a program stored in the memory.
In a fourth aspect, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the method steps of any one of the above-mentioned first aspects.
The method for generating the persistent layer archived file can configure the model information of the database model corresponding to the target project according to the project information of the target project; processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project; and compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target project. The method improves the compiling efficiency of the persistent layer code and reduces the workload of java developers for modeling the persistent layer.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a method for generating a persistent layer archive file according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an apparatus for generating a persistent layer archive file according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without making any creative effort belong to the protection scope of the present application.
For convenience of understanding, terms referred to in the embodiments of the present application are explained below:
(1) A persistent layer: the data can be stored in the device permanently, and does not disappear after being powered off as in the memory, generally speaking, the persistent layer is various operations of the database, such as adding, deleting, modifying, inquiring (CRUD) and other updating operations, namely, the persistent action is packaged into an independent layer, which is used for reducing the association between the function codes. Wherein the goals of the persistent layer design include:
1) The separation of data storage logic provides an abstract data access interface;
2) The separation of the data access bottom layer implementation can switch the bottom layer implementation under the condition of not modifying codes;
3) The resource management and the scheduling are separated, and uniform resource scheduling (such as a cache mechanism) is realized on a data access layer;
4) Data abstraction, providing more object-oriented data manipulation.
(2) ERMaster is an Eclipse plug-in used to design ER model maps. The functions provided by it include: an ER graph is generated by importing a relationship from a database, a design graph is derived, and a Data Definition Language (DDL) is derived. The ER graph is also called an entity relationship graph, and is a method for providing entities, attributes and relations, and is used for describing a conceptual model of the real world. Colloquially, after understanding the need of a real problem, we need to express the need by a method, and a conceptual model is used to describe the need.
(3) FreeMarker is a template engine: i.e. a generic tool that is based on a template and the data to be changed and used to generate the output text. It is a Java class library, a component that programmers can embed into the products they develop. The output Text may include hypertext Markup Language (HTML) web pages, emails, configuration files, source code, and the like.
(4) Maven is a software project management tool that can manage the construction, reporting, and documentation of projects through a small piece of description information (configuration) based on the project object model (POM project object model). It is essentially a plug-in framework whose core does not perform any specific build tasks, all of which are handed to the plug-in for completion, e.g., compiling source code is done by a maven-compiler-plugin. Furthermore, each task corresponds to a plug-in object (good), each plug-in has one or more objects, for example, a mail object of maven-compiler-plugin is used to compile main source code located under src/main/java/directory, and a testCompaile object is used to compile test source code located under src/test/java/directory.
(5) MyBatis is a Java persistent layer framework that supports customized SQL, stored procedures, and advanced mapping.
(6) The JPA (Java Persistence API) is a Persistence framework based on an Application Programming Interface (API), and simple CRUD operation is realized on a database table by the API.
The method for generating the persistent layer archived file provided by the embodiment of the application can be applied to a server, and the server can be an application server or a cloud server.
The method utilizes a modeling plug-in ERMaster of eclipse, and the ERMaster establishes a database model corresponding to a target project and acquires model information of the database model. And finally, compiling the persistent layer source code based on a configured compiling path to obtain a persistent layer Java archive file, namely a jar package, corresponding to the target project.
The method can ensure that the code base does not have any persistent layer code, the whole persistent layer only has the model information of the established database model, the code is concise and convenient to manage, and simultaneously, the workload of java developers for modeling the persistent layer is reduced.
Furthermore, when the method faces the change of the information in the database model, the change of the persistent layer code can be realized only by changing the relevant information in the database model, the change process is simplified, and the code change efficiency is improved.
The preferred embodiments of the present application will be described in conjunction with the drawings of the specification, it should be understood that the preferred embodiments described herein are only for illustrating and explaining the present application, and are not intended to limit the present application, and the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 1 is a schematic flowchart of a method for generating a persistent layer archive file according to an embodiment of the present application. As shown in fig. 1, the method may include:
and step S110, configuring model information of the database model corresponding to the target project according to the project information of the target project.
The item information may include item execution logic and item information corresponding to the target item, such as item identification, item content, and other information.
In the specific implementation, a modeling plug-in ERMaster of eclipse is used for configuring the model information of the database model corresponding to the target project according to the project execution logic and the corresponding project information of the target project so as to realize the establishment of the database model corresponding to the target project,
the model information can comprise structure parameters of at least one database table and association parameters among different database tables; the structural parameters of a database table may include the table identification of the database and the field information in the corresponding database table. The association parameters between different database tables are obtained by mapping each database table into entity classes to obtain the association relation between corresponding entity classes. The field information may include field name, data type, data length, whether null is allowed, etc., and primary key information and index information of the corresponding database table, etc.
It should be noted that the database corresponding to the database model may be a relational database, a cache database, a Key-value database (i.e., a Key-value pair database), a non-relational database NoSQL, an object-oriented database, or the like.
And step S120, processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project.
The preset code generation rule may be a Freemaker technical rule or other technical rules that can generate a source code, which is not limited in this application.
Taking a preset code generation rule as a Freemarker technical rule as an example, processing the model information by adopting the Freemarker technical rule to generate a persistent layer source code corresponding to the target project.
And S130, compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target item.
Before this step is performed, the corresponding compiling path configured for the persistent layer source code may be specifically: acquiring a generation path of a source code of a persistence layer; and configuring a compiling path of the persistent layer source code by using a preset path configuration plug-in based on the generating path of the persistent layer source code. The preset path configuration plug-in may be a Maven plug-in of a project management tool, and may also be other path configuration plug-ins, which is not limited herein.
The specific program code may be expressed as:
in specific implementation, the persistent layer source code is compiled based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target project. The persistent layer Java archive file may be a Java archive file based on a persistent layer framework of Java, such as mybases, or a persistent layer Java archive file, such as JPA.
Furthermore, in the face of database change, the update of the persistent layer source code can be realized only by updating corresponding information in the established modified database model, so that an updated persistent layer Java filing file is obtained, the database updating process is simplified, and the updating efficiency is improved.
In specific implementation, after a persistent layer Java archive file corresponding to a target project is obtained, updating information of the target project is obtained; updating the model information based on the updating information to obtain updated model information; and processing the updated model information by adopting a preset code generation rule to generate a new persistent layer source code corresponding to the target project so as to obtain an updated persistent layer Java archive file corresponding to the target project.
The method for generating the persistent layer archived file can configure the model information of the database model corresponding to the target project according to the project information of the target project; processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project; and compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target project. The method improves the writing efficiency of the persistent layer code and reduces the workload of java developers for modeling the persistent layer.
Corresponding to the foregoing method, an embodiment of the present application further provides an apparatus for generating a persistent layer archive file, as shown in fig. 2, where the apparatus includes: a configuration unit 210, a generation unit 220, and a compilation unit 230.
A configuration unit 210, configured to configure, according to item information of a target item, model information of a database model corresponding to the target item;
the generating unit 220 is configured to process the model information by using a preset code generation rule, and generate a persistent layer source code corresponding to the target project;
and the compiling unit 230 is configured to compile the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target item.
In one possible implementation, the project information includes project execution logic and project information corresponding to the target project;
a configuration unit 210, configured to configure, according to the item execution logic of the target item and corresponding item information, model information of a database model corresponding to the target item, where the model information includes a structure parameter of at least one database table and an association parameter between different database tables; wherein the structural parameters of the database table include a table identifier of the database and field information in the database table.
In one possible implementation, the preset code generation rule is a Freemarker technical rule.
In one possible implementation, the apparatus further comprises an obtaining unit 240;
an obtaining unit 240, configured to obtain a generation path of the persistent layer source code;
the configuration unit 210 is further configured to configure, based on the generation path of the persistent layer source code, the compiling path of the persistent layer source code by using a preset path configuration plug-in.
In one possible implementation, the preset path configuration plug-in is a project management tool Maven plug-in.
In one possible implementation, the apparatus further comprises an updating unit 250;
an obtaining unit 240, configured to obtain update information of the target item;
an updating unit 250, configured to update the model information based on the update information, so as to obtain updated model information;
the generating unit 220 is further configured to process the updated model information by using a preset code generation rule, and generate a new persistent layer source code corresponding to the target item.
In one possible implementation, the persistent layer Java archive file corresponding to the target item is a Java archive file based on a Java persistent layer framework or a Java archive file based on an application program interface persistent layer framework.
The functions of the functional units of the apparatus for generating persistent layer archived files provided in the foregoing embodiments of the present application may be implemented by the foregoing method steps, and therefore, detailed working processes and beneficial effects of the units in the apparatus for generating persistent layer archived files provided in the foregoing embodiments of the present application are not described herein again.
The embodiment of the present application further provides an electronic device, as shown in fig. 3, including a processor 310, a communication interface 320, a memory 330, and a communication bus 340, where the processor 310, the communication interface 320, and the memory 330 complete communication with each other through the communication bus 340.
A memory 330 for storing a computer program;
the processor 310, when executing the program stored in the memory 330, implements the following steps:
configuring model information of a database model corresponding to a target project according to the project information of the target project;
processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project;
and compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target item.
In one possible implementation, the project information includes project execution logic and project information corresponding to the target project;
according to the project information of the target project, configuring the model information of the database model corresponding to the target project, including:
configuring model information of a database model corresponding to a target project according to the project execution logic of the target project and corresponding project information, wherein the model information comprises structural parameters of at least one database table and associated parameters among different database tables; wherein the structural parameters of the database table include a table identifier of the database and field information in the database table.
In one possible implementation, the preset code generation rule is a Freemarker technical rule.
In one possible implementation, after processing the model information by using a preset code generation rule and generating a persistent layer source code corresponding to the target item, the method further includes:
acquiring a generation path of the persistent layer source code;
before compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target item, the method further comprises:
and configuring a compiling path of the persistent layer source code by using a preset path configuration plug-in based on the generating path of the persistent layer source code.
In one possible implementation, the preset path configuration plug-in is a project management tool Maven plug-in.
In one possible implementation, after obtaining the persistent-layer Java archive file corresponding to the target item, the method further includes:
acquiring update information of the target project;
updating the model information based on the updating information to obtain updated model information;
processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project, wherein the method comprises the following steps:
and processing the updated model information by adopting a preset code generation rule to generate a new persistent layer source code corresponding to the target project.
In one possible implementation, the persistent layer Java archive file corresponding to the target item is a Java archive file based on a Java persistent layer framework or a Java archive file based on an application program interface persistent layer framework.
The aforementioned communication bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
As the implementation manner and the beneficial effects of the problem solving of each device of the electronic device in the foregoing embodiment can be implemented by referring to each step in the embodiment shown in fig. 1, detailed working processes and beneficial effects of the electronic device provided in the embodiment of the present application are not repeated herein.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, which stores instructions that, when executed on a computer, cause the computer to execute the method for generating a persistent layer archive file described in any of the above embodiments.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the method for generating a persistent layer archive file as described in any of the above embodiments.
As will be appreciated by one of skill in the art, the embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the present application.
It is apparent that those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the embodiments of the present application and their equivalents, the embodiments of the present application are also intended to include such modifications and variations.
Claims (10)
1. A method for generating a persistent layer archive file, the method comprising:
configuring model information of a database model corresponding to a target project according to the project information of the target project;
processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project;
and compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target item.
2. The method of claim 1, wherein the project information comprises project information corresponding to project execution logic and the target project;
according to the project information of the target project, configuring the model information of the database model corresponding to the target project, wherein the configuration comprises the following steps:
configuring model information of a database model corresponding to a target project according to the project execution logic of the target project and corresponding project information, wherein the model information comprises structural parameters of at least one database table and associated parameters among different database tables; wherein the structural parameters of the database table include a table identifier of the database and field information in the database table.
3. The method of claim 1, wherein the preset code generation rule is a Freemarker technology rule.
4. The method of claim 3, wherein after processing the model information using a preset code generation rule and generating a persistent layer source code corresponding to the target item, the method further comprises:
acquiring a generation path of the persistent layer source code;
before compiling the persistent layer source code based on the configured compiling path and obtaining the persistent layer Java archive file corresponding to the target item, the method further comprises the following steps:
and configuring a compiling path of the persistent layer source code by using a preset path configuration plug-in based on the generating path of the persistent layer source code.
5. The method of claim 4, wherein the pre-defined path configuration plug-in is a project management tool Maven plug-in.
6. The method of claim 1, wherein after obtaining the persistent layer Java archive file corresponding to the target item, the method further comprises:
acquiring update information of the target project;
updating the model information based on the updating information to obtain updated model information;
processing the model information by adopting a preset code generation rule to generate a persistent layer source code corresponding to the target project, wherein the method comprises the following steps:
and processing the updated model information by adopting a preset code generation rule to generate a new persistent layer source code corresponding to the target project.
7. The method of claim 1, wherein the persistent layer Java archive file corresponding to the target item is a Java based persistent layer framework Java archive file or an application programming interface persistent layer framework Java archive file.
8. An apparatus for generating a persistent layer archive file, the apparatus comprising:
the configuration unit is used for configuring the model information of the database model corresponding to the target project according to the project information of the target project;
the generating unit is used for processing the model information by adopting a preset code generating rule and generating a persistent layer source code corresponding to the target project;
and the compiling unit is used for compiling the persistent layer source code based on the configured compiling path to obtain a persistent layer Java archive file corresponding to the target item.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-7 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210891263.0A CN115268930A (en) | 2022-07-27 | 2022-07-27 | Method and device for generating persistent layer archive file, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210891263.0A CN115268930A (en) | 2022-07-27 | 2022-07-27 | Method and device for generating persistent layer archive file, electronic equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115268930A true CN115268930A (en) | 2022-11-01 |
Family
ID=83769985
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210891263.0A Pending CN115268930A (en) | 2022-07-27 | 2022-07-27 | Method and device for generating persistent layer archive file, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115268930A (en) |
-
2022
- 2022-07-27 CN CN202210891263.0A patent/CN115268930A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11599337B2 (en) | Dataflow graph configuration | |
US10360141B2 (en) | Automated application test system | |
CA2814835C (en) | Managing data set objects in a dataflow graph that represents a computer program | |
US9952835B2 (en) | Generation of hybrid enterprise mobile applications in cloud environment | |
US20080126409A1 (en) | Systems and methods for providing a decoupled simulation for business objects | |
CN113076096B (en) | Desktop application program development method, device, equipment and storage medium | |
US10990515B2 (en) | Automated unit testing in a mainframe environment | |
CN111125064A (en) | Method and device for generating database mode definition statement | |
Samimi et al. | Declarative mocking | |
CN109284222B (en) | Software unit, project testing method, device and equipment in data processing system | |
JP7373587B2 (en) | Service management in DBMS | |
Musleh et al. | Automatic generation of android SQLite database components | |
US11693652B2 (en) | Automated authoring of software solutions from a data model | |
CN115268930A (en) | Method and device for generating persistent layer archive file, electronic equipment and medium | |
CN113504904A (en) | User-defined function implementation method and device, computer equipment and storage medium | |
US10380084B2 (en) | Data model view with complex calculation capability | |
CN116755684B (en) | OAS Schema generation method, device, equipment and medium | |
Čukić | Functional Reactive Programming in C++ | |
CN117573199B (en) | Model difference comparison analysis method, device, equipment and medium | |
US11888937B2 (en) | Domain specific provider contracts for core data services | |
Zeller et al. | Towards a proof framework for information systems with weak consistency | |
CN117950684A (en) | Inspection task execution processing method and device | |
WO2023178260A1 (en) | Intelligent data processing system with metadata generation from iterative data analysis | |
CN117055967A (en) | Data processing method, data system, electronic device and storage medium | |
KR20140070151A (en) | Method of implementation plan for dynamic business service based on sql |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |