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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
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