Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, system and equipment for reversely generating Java entity class

An entity class, consistent technology, applied in the computer field, can solve problems such as low efficiency, inability to achieve synchronization between data tables and Java entity classes, etc., to achieve the effect of improving work efficiency

Pending Publication Date: 2022-07-29
重庆锐云科技有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the existing technology, it is impossible to realize the synchronous linkage between the data table and the Java entity class, and the Java entity class can only be reversely generated through the data table, and the change after the entity structure is determined can only be adjusted manually, which is inefficient

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, system and equipment for reversely generating Java entity class
  • Method, system and equipment for reversely generating Java entity class
  • Method, system and equipment for reversely generating Java entity class

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0019] In one embodiment, as figure 1 As shown, a method for reversely generating Java entity classes is provided, including the following steps:

[0020] In step S101, a metadata table is newly created, and the metadata table is used to store metadata of all tables.

[0021] Specifically, create a metadata table, and store the metadata of all tables in the library through the metadata table

[0022] In step S102, a custom event is created, and the DDL operation in the database table is monitored through the custom event.

[0023] Specifically, create a custom event. For ...

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 method, a system and equipment for reversely generating a Java entity class, and the method comprises the steps: creating a metadata table which is used for storing metadata of all tables; creating a user-defined event, and monitoring the DDL operation in the database table through the user-defined event; if the DDL operation is executed in the database table, triggering a correction operation of the metadata table; a trigger is created, after the trigger monitors the correction operation, an http component is called to send an http request to a server, and the http request carries change data; and after the server receives the http request, analyzing the change data in the http request, generating a Java entity class according to the change data, and updating the content in the Java source file. According to the method and the device, synchronous linkage of the database table and the Java source file is realized, the database table can be automatically synchronized to the Java source file when the database table is changed, and the working efficiency is improved.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method, system and device for reversely generating Java entity classes. Background technique [0002] Java language is a strongly typed compiled language. During the compilation process of each project, the actual class file (.class) corresponding to the reference type in the source code must be loaded and declared to be checked to complete the compilation. As a reference class (class) that has been compiled by Java, it must exist in the form of a file in the project environment before it can be compiled and loaded by the compiler, and then loaded into the virtual machine to run in the next step. [0003] However, in the prior art, the synchronous linkage between the data table and the Java entity class cannot be realized, and the Java entity class can only be generated in the reverse direction through the data table, and the change after the entity structure is ...

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/53G06F8/41G06F8/30
CPCG06F8/53G06F8/42G06F8/315
Inventor 李琦赖艳
Owner 重庆锐云科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products