Method and equipment for describing synchronous database table structure according to model

A database and table structure technology, applied in the field of data processing, can solve problems such as the inability to effectively manage the database table structure, and achieve intuitive and effective management

Active Publication Date: 2021-03-12
INSPUR COMMON SOFTWARE
View PDF8 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present application provides a method and device for describing the structure of the synchronous database table according to the model, to solve the technical problem that the existing method of describing the structure of the database table cannot effectively manage the structure of the database table

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 equipment for describing synchronous database table structure according to model
  • Method and equipment for describing synchronous database table structure according to model
  • Method and equipment for describing synchronous database table structure according to model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments of the present application and corresponding drawings. Apparently, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. 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.

[0022] In order to realize the synchronous database table structure, maintain and manage it, the table structure of the database is often described uniformly. There are three common description methods: using the Java-related entity mapping framework, using a single structure to describe the table structure, and using SQL statements to describe the ta...

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 equipment for describing a synchronous database table structure according to a model. The method and equipment are used for solving the technical problem that an existing database table structure description mode cannot effectively manage the database table structure. The method comprises the steps of abstracting a database table structure into a first databaseobject model description; acquiring database connection information and setting information, and constructing a Hibernate service registration constructor; obtaining and analyzing a second database object model description, mapping the second database object model description into an abstract syntax tree, and generating an entity class according to the abstract syntax tree; wherein the second database object model description is obtained by modifying based on the first database object model description; and based on the Hibernate service registration constructor, creating an instance so as togenerate a structured query language according to the difference between the entity class and the database table structure, and synchronizing the database table structure. According to the method, the database table structure is visually and effectively managed and maintained, and it is guaranteed that description of the database table structure and description in the entity class are kept consistent.

Description

technical field [0001] The present application relates to the technical field of data processing, and in particular to a method and device for describing a synchronous database table structure according to a model. Background technique [0002] In order to effectively manage the database table structure, the database table structure is often described uniformly to facilitate synchronization of the database table structure. There are three common description methods: [0003] 1. Use an entity mapping framework (such as Hibernate, MyBatis), describe the table structure as an entity in the code, and establish a mapping relationship with the database through annotation or configuration. However, this method does not allow users to directly know how many tables are in the entire product database, nor does it know the specific table structure of each table, which is not intuitive. [0004] 2. Use a separate structure to describe the table structure and manage it. Although this ...

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): G06F16/22G06F16/27G06F16/28
CPCG06F16/27G06F16/288G06F16/2246Y02D10/00
Inventor 赵磊
Owner INSPUR COMMON SOFTWARE
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