Unlock instant, AI-driven research and patent intelligence for your innovation.

Code conversion method, system, equipment and computer readable storage medium

A technology of code conversion and storage media, applied in equipment and computer-readable storage media, code conversion methods, and system fields, can solve problems such as poor applicability, time-consuming, boring developers, etc., and achieve good applicability

Pending Publication Date: 2021-05-07
亿企赢网络科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the method of manually writing the mapping code has the disadvantages of low development efficiency and prone to mapping errors, especially when there are many fields in the POJO model, it is necessary to convert all the attributes one by one, which is time-consuming and expensive for development. The staff is boring and poor in applicability

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
  • Code conversion method, system, equipment and computer readable storage medium
  • Code conversion method, system, equipment and computer readable storage medium
  • Code conversion method, system, equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the 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.

[0051] see figure 1 , figure 1 It is the first flow chart of a code conversion method provided by the embodiment of this application.

[0052] A code conversion method provided in an embodiment of the present application may include the following steps:

[0053] Step S101: Obtain the code model to be converted and the converted code model.

[0054] In practical applications, because the code model will affect the code conversion process, the code model to be converted and the cod...

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 code conversion method, a system, equipment and a computer readable storage medium. The method comprises the steps of obtaining a to-be-converted code model and a converted code model; determining the same first class of attributes in the to-be-converted code model and the converted code model, a second class of attributes only belonging to the to-be-converted code model, and a third class of attributes only belonging to the converted code model; generating a first conversion mode of the first type of attributes; generating a first annotation representing that the second attribute only belongs to the to-be-converted code; generating a second annotation representing that the second attribute only belongs to the converted code; and performing code conversion based on the first conversion mode, the first annotation and the second annotation. According to the method and the device, the first type of attributes, the second type of attributes and the third type of attributes in the to-be-converted code model and the converted code model are automatically determined, the first conversion mode, the first annotation and the second annotation are generated, code conversion is automatically performed on the corresponding attributes based on the first conversion mode, the first annotation and the second annotation, and the applicability is good.

Description

technical field [0001] The present application relates to the field of computer technology, and more specifically, to a code conversion method, system, device, and computer-readable storage medium. Background technique [0002] At present, the function realization of computers, software, etc. requires the support of codes. In the process of writing codes, it may be necessary to convert the codes. For example, there are a lot of POJO (Plain Ordinary Java Object, simple Java objects) layers interaction, but the POJOs of each layer may be different. In order not to expose the details of the underlying model, such as user passwords, each layer outputs a different POJO model. Therefore, when calling the POJO, the POJO model of the layer needs to be Convert to another layer of POJO model. For example, when the Controller layer calls the Service layer, VO (ValueObject, value object) needs to be converted into DTO (Data Transfer Object, data transfer object). Correspondingly, when t...

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): G06F8/52G06F8/73
CPCG06F8/52G06F8/73
Inventor 凌利虎吴迪虞佳祺苏辉
Owner 亿企赢网络科技有限公司