Generating method and device of persistence layer codes

A technology of persistence layer and code, applied in the computer field, can solve the problems of large redundancy of persistence layer code and waste of storage space, and achieve the effect of reducing redundancy, reducing complexity and reducing system resources.

Active Publication Date: 2013-09-18
ALIBABA GRP HLDG LTD
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The present application provides a method and device for generating persistence layer codes, so as to at least solve the problem of wasting storage space due to the large redundancy of persistence layer codes in the related art

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
  • Generating method and device of persistence layer codes
  • Generating method and device of persistence layer codes
  • Generating method and device of persistence layer codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Such as figure 1 As shown, the persistence layer code generation system 100 includes: a website server 102 and a client 104 . The working process of the persistence layer code generation system 100 can be shown as follows:

[0043] S1: The server 102 generates a running configuration file according to the source configuration file and the received entity name, wherein the running configuration file includes the entity name, preferably, the above running configuration file includes a bean configuration file and a sql file, and the above entity name can preferably be It is the entity name (such as: student) input by the user to the server through the client, and the system default entity name is recorded in the source configuration file, for example, the system default entity name is: teacher; in this step, the source configuration file is the system Pre-generated, the source configuration file can contain the sql statement configuration file required at runtime and some...

Embodiment 2

[0059] exist Figure 1-7 On the basis of , this application provides a preferred generation method of the persistence layer code, in order to achieve the technical effects of reducing the redundancy of the persistence layer code, saving storage space, and reducing the system resources required for code maintenance. In order to achieve the above purpose, specifically, as Figure 8 As shown, the generation method of the above persistence layer code includes:

[0060] S802: Generate a running configuration file according to the source configuration file and the received entity name, wherein the running configuration file includes the entity name; preferably, the above-mentioned running configuration file includes a bean configuration file and a sql file, and the above-mentioned entity name can preferably be a user The entity name (such as: student) input by the client to the server, the system default entity name is recorded in the source configuration file, for example, the sys...

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 provides a generating method and a generating device of persistence layer codes wherein the method comprises the following steps that operation configuration files are generated according to source configuration files and received entity names, wherein the operation configuration files comprise the entity names; the entity names are obtained from the operation configuration files, in addition, the entity names are used as the entity input parameters of performance functions to be transmitted into the corresponding performance functions in the performance enhancement examples obtained by basic data visit object BaseDAO statement; the performance functions corresponding to the action commands are selected from the performance enhancement examples according to the received action commands to be used as the persistence layer codes. The method and the device solve the problem of storage space waste caused by great code redundancy in the prior art, so the redundancy degree of the persistence layer codes is reduced, the storage space is saved, and the system resources required by the code maintenance are reduced.

Description

technical field [0001] The present application relates to the field of computers, in particular, to a method and device for generating persistence layer codes. Background technique [0002] Today, with the rise of enterprise applications, in order to meet the various needs of consumers, enterprises must develop a large number of applications every day, which leads to the rapid expansion of the amount of code developed on the one hand, and on the other hand, although the content of these application developments has However, after long-term development, it can be found that many codes are extremely similar, especially the persistence layer. [0003] Especially for the development of J2EE applications, for a long time, since the common three-tier architecture (persistence layer, business layer, and presentation layer) of the program framework has been regarded as a classic in various companies, all companies basically adopt this architecture. Among them, in the lower layer of...

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): G06F9/44G06F17/30
Inventor 邓旻辉罗坤莉
Owner ALIBABA GRP HLDG LTD
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