Method and device for using ORM framework based on dynamic entity object

An entity object and framework technology, applied in the direction of program code conversion, software design, code compilation, etc., can solve the problems of a lot of manpower, unable to dynamically construct the entity object of the ORM framework, time-consuming and labor-intensive, etc.

Pending Publication Date: 2022-03-01
CHENGDU SEFON SOFTWARE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a method and device for using an ORM framework based on dynamic entity objects, so as to solve the problem that the existing method needs a lot of manpower to prepare data when the table of scene operation is unclear, which is time-consuming and laborious; the ORM framework cannot be dynamically constructed The problem with the entity object

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
  • Method and device for using ORM framework based on dynamic entity object

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0025] Such as figure 1 As shown, a method of using an ORM framework based on a dynamic entity object is to convert the table into a Groovy script, then form an entity object through Groovy's dynamic loading, and finally use the ORM framework to operate the table; the specific process is as follows:

[0026] The first step: collect the table to be operated.

[0027] The second step: collect the structure of the table data in the first step and assemble it to form a table structure object; the specific process is as follows:

[0028] 1. Define the metadata model to be collected by different types of databases;

[0029] 2. Collect according to the defined meta-model range type;

[0030] 3. Form a concrete object instance.

[0031] The third step: combine the ORM framework definition to convert the table structure object in the second step into a Groovy script; the specific steps are as follows:

[0032] 1. Define the entity table characteristics of the specific ORM framework...

Embodiment 2

[0038] An apparatus for using an ORM framework based on a dynamic entity object includes a memory: used for storing executable instructions; a processor: used for executing the executable instructions stored in the memory, and realizing a method for using an ORM framework based on a dynamic entity object.

[0039] The present invention converts the table structure object into a Groovy script, so that the present invention can dynamically construct the entity object of the ORM framework during system use; can specify the ORM framework rules to adapt to different ORM frameworks, so that the present invention can adapt to multiple ORMs frame.

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 method and device for using an ORM framework based on a dynamic entity object, and mainly solves the problems that in the prior art, a large amount of manpower is needed to prepare data when a scene operation table is not clear, and time and labor are wasted; and the problem that the entity object of the ORM framework cannot be dynamically constructed is solved. The method for using the ORM framework based on the dynamic entity object comprises the steps that a table needing to be operated forms a Grooven script, then the Grooven script is read, compiled and operated to form the entity object, and the table is operated by using the ORM framework in combination with the entity object. According to the scheme, the entity object of the ORM framework is dynamically constructed, time and labor are saved, and the method can adapt to various ORM frameworks.

Description

technical field [0001] The invention relates to the technical field of dynamic entity object data processing, in particular to a method and device for using an ORM framework based on a dynamic entity object. Background technique [0002] The method of using the ORM framework based on the dynamic entity object provides a default way to use the corresponding ORM framework, first define the entity object and then use it; the specific process is: first define the entity object, then define the entity object first, and finally use the fixed object in the JVM operation Entity objects for database operations. [0003] The above existing methods must first define the entity objects used by the ORM framework. If the table of scene operations is not clear, a lot of manpower is required to prepare data, which is time-consuming and laborious; the entity objects of the ORM framework cannot be dynamically constructed. Contents of the invention [0004] The purpose of the present invent...

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
IPC IPC(8): G06F8/20G06F8/41
CPCG06F8/24G06F8/41
Inventor 周昱翰刘俊良王怡君
Owner CHENGDU SEFON SOFTWARE CO 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